Multi record display order
2 posts by 2 authors in: Forums > CMS Builder
Last Post: Yesterday at 3:52pm (RSS)
I have a multi record list and all the records are listed alphabetically in the CMS in the correct order but on the page they are not displaying in the same order. How can I fix this? This is the page: https://worthschool.co.uk/activities-clubs-societies/
By Dave - Yesterday at 3:52pm
Hi MercerDesign,
In your getRecords() call you can add this option:
'orderBy' => 'lastName DESC', // optional, defaults to $_REQUEST['orderBy'], or table sort order
Just replace "lastName" with the column you want to sort on, and if you don't want it in descending (reverse) order, remove "DESC".
Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com