Ygoramalho Posted October 25, 2015 Report Share Posted October 25, 2015 Hello, I wonder how to keep the list of drivers in order according to their number, not according to rank, see the problem in the following image, the number of Riders: 0003 and 0004 were for the end they passed the rank . I await answers, good night. Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 25, 2015 Report Share Posted October 25, 2015 It should be by id. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted October 25, 2015 Moderators Report Share Posted October 25, 2015 You need to change your DB query to fetch data ordered by pilot ID. Try this: $sql = "SELECT * FROM phpvms_pilots ORDER BY pilotid" Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted October 25, 2015 Moderators Report Share Posted October 25, 2015 A better way to do this is adding the following in your core/local.config.php file: Config::Set('PILOT_ORDER_BY', 'p.joindate ASC'); Quote Link to comment Share on other sites More sharing options...
Ygoramalho Posted October 26, 2015 Author Report Share Posted October 26, 2015 Resolved, I added the following line in the core / local.config.php file: Config::Set('PILOT_ORDER_BY', 'pilotid'); Thank you all 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.