andre 4 жил өмнө
parent
commit
3c6d4f6fb0
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      action.php

+ 1 - 1
action.php

@@ -7,7 +7,7 @@ class action {
 
     public function getUser() {
         $list = array();
-        $dbAction = $this->db->prepare("SELECT token, role, description FROM clients");
+        $dbAction = $this->db->prepare("SELECT token, role, description FROM clients ORDER BY description ASC");
         $dbAction->execute();
         $dbAction->store_result();
         $dbAction->bind_result($token,$role,$description);