title: Should sorting logic be placed in the model, the view, or the controller?
body: <p>I have a drop down list that displays values from a table to the end user. I would like to have these values be sorted alphabetically.</p>
  
  <p>According to proper MVC design, at what layer should I place my sorting logic: the model, the view, or the controller?</p>
  
  <p><strong>EDIT</strong>: In response to LarsH's question, "Do you mean code that determines what sort order is desired? or code that performs the sort?", I was originally referring to the code that determines what sort order is desired.</p>