BBuchanan Posted April 16, 2011 Report Share Posted April 16, 2011 Something that might be quick and easy: (I hope it is) Is there a way to group awards ( or add groups) to later sort them out? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 16, 2011 Moderators Report Share Posted April 16, 2011 You can add then as group names like i have, So all event awards start with Events all flight awards start Flight all exams start Exams etc then all you need to do is order the output in the awards.dataclass.php file. /** * Get all awards * * @return mixed array of objects * */ public static function GetAllAwards() { $sql = 'SELECT * FROM ' . TABLE_PREFIX . 'awards ORDER BY name ASC'; return DB::get_results($sql); } Quote Link to comment Share on other sites More sharing options...
BBuchanan Posted April 17, 2011 Author Report Share Posted April 17, 2011 You can add then as group names like i have, So all event awards start with Events all flight awards start Flight all exams start Exams etc then all you need to do is order the output in the awards.dataclass.php file. /** * Get all awards * * @return mixed array of objects * */ public static function GetAllAwards() { $sql = 'SELECT * FROM ' . TABLE_PREFIX . 'awards ORDER BY name ASC'; return DB::get_results($sql); } Thank you. Quote Link to comment Share on other sites More sharing options...
flyalaska Posted April 17, 2011 Report Share Posted April 17, 2011 Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.