ORDER
ORDER
nskwortsow
Posts: 120Questions: 0Answers: 0
Hi,
How do I order the search results (in this case: EquipmentName ASC)?
$editor = Editor::inst( $db, 'tblExerciseEquipment' )
->fields(
Field::inst( 'EquipmentName' )->validator( 'Validate::required' ),
Field::inst( 'f_LanguageID' )->validator( 'Validate::required' )
)
->join(
Join::inst('tblLanguages','object')
->join('f_LanguageID','LanguageID')
->fields(
Field::inst( 'LanguageID' ),
Field::inst( 'LName' ))
->set( false )
);
How do I order the search results (in this case: EquipmentName ASC)?
$editor = Editor::inst( $db, 'tblExerciseEquipment' )
->fields(
Field::inst( 'EquipmentName' )->validator( 'Validate::required' ),
Field::inst( 'f_LanguageID' )->validator( 'Validate::required' )
)
->join(
Join::inst('tblLanguages','object')
->join('f_LanguageID','LanguageID')
->fields(
Field::inst( 'LanguageID' ),
Field::inst( 'LName' ))
->set( false )
);
This discussion has been closed.
Replies
Allan
Allan
http://editor.datatables.net/docs/current/php/class-DataTables.Database.Query.html
Allan