Sort by multiple criteria

A place for users and developers of the Xataface to discuss and receive support.

Sort by multiple criteria

Postby Gershy » Mon Nov 26, 2012 11:40 am

I found the page that explains this a few weeks ago but I can't seem to find it again. I have a table of "Members" with first and last names. If I sort them by their last names, and there are several members with the same last name, how do I delegate to sorting them by their first names?


To sort by only last name I'm using the url method;
$app->url('&-sort=Last_Name');
Gershy
 
Posts: 25
Joined: Wed Nov 14, 2012 12:28 pm

Re: Sort by multiple criteria

Postby shannah » Fri Nov 30, 2012 4:19 am

Code: Select all
$app->url('&-sort=Last_Name,First_Name');


-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Sort by multiple criteria

Postby Gershy » Mon Dec 03, 2012 1:50 pm

That's perfect! Thank you.
Gershy
 
Posts: 25
Joined: Wed Nov 14, 2012 12:28 pm


Return to Xataface Users

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved