A client request is to sort a list of employees first by title and then by name. What are some suggestions for achieving this?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 07, 2011 4:24pm
Subscribe [1]#1 / Jun 07, 2011 4:24pm
A client request is to sort a list of employees first by title and then by name. What are some suggestions for achieving this?
#2 / Jun 07, 2011 11:27pm
Have you seen the orderby= channel entries parameter? - http://ellislab.com/expressionengine/user-guide/modules/channel/parameters.html#par_orderby
{exp:channel:entries channel="yourchannel" orderby="title|name" sort="asc|asc"}
{title} {name}
{/exp:channel:entries}#3 / Jun 07, 2011 11:35pm
OH, rad. Thanks. Easy peasy.