Change Sort Order

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 17, 2008   (RSS)

Re: [virgodesign] Change Sort Order

By Dave - October 17, 2008

Hi Avrom,

By default CMS Builder will use the sorting you've setup under "Admin > Section Editors", but you can override that by entering a different sort order in the Code Generator or the view code itself.

Try adding this:
'orderBy' => 'course_name',

As in:
list($course_schedulesRecords, $course_schedulesMetaData) = getRecords(array(
'tableName' => 'course_schedules',
'orderBy' => 'course_name',
'loadUploads' => '0',
'allowSearch' => '0',
));

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Change Sort Order

By avrom - October 17, 2008

Thanks Dave ;)) worked perfectly...

Sorry I haven't been in touch, its been busy here :)) yes even in the middle of nowhere LOL