0

I want to try and order my resources by ID in ascending order.

Annoyingly, the documentation doesn't mention this though I am sure its possible.

Currently I have:

&sortby=`id`

Would anyone know the correct way to order by ascending or descending?

Thanks

Phil
  • 157,677
  • 23
  • 242
  • 245
MeltingDog
  • 14,310
  • 43
  • 165
  • 295

1 Answers1

3

Are you sure you're reading the correct documentation?

You should be able to use

[[getResources? &sortby=`id` &sortdir=`ASC` ...
Phil
  • 157,677
  • 23
  • 242
  • 245
  • ah right - you are correct. I should have looked harder. I assumed it would have been mentioned in the sortby section – MeltingDog Jan 08 '13 at 05:30