3064 Posts in 865 Topics by 647 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 915 Views |
-
sorting by two parameters

29 March 2009 at 4:52am
I want to sort by two parameters like in SQL "... ORDER BY `lastname`,'firstname`" but it seem not to work and I cannot find documentation
Thank you in advance. Victor
-
Re: sorting by two parameters

29 March 2009 at 11:06am
This should work:
$records = DataObject::get("SomeObject", "","SortFieldA ASC, SortFieldB ASC");
-
Re: sorting by two parameters

29 March 2009 at 12:03pm Last edited: 29 March 2009 1:15pm
Yes, I found it. But on my way to find I found a strange error.
ThanksVictor
| 915 Views | ||
|
Page:
1
|
Go to Top |


