]> Softwares of Agnibho - simpleipd.git/commitdiff
Sorted medicines
authorAgnibho Mondal <mondal@agnibho.com>
Sun, 23 May 2021 18:03:06 +0000 (23:33 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Sun, 23 May 2021 18:03:06 +0000 (23:33 +0530)
lib/db.php

index 8a02ae5e875e3379999fc71c376908d7d17b7658..f0f0489ddd38a8edc5187398f7d40c3a9b1916d5 100644 (file)
@@ -250,7 +250,7 @@ class DB extends SQLite3 {
   function getDrugs($pid){
     global $log;
     if(!checkAccess("treatment", "dbGet")) return false;
-    $stmt=$this->prepare("SELECT rowid,* FROM treatment WHERE pid=:pid;");
+    $stmt=$this->prepare("SELECT rowid,* FROM treatment WHERE pid=:pid ORDER BY omit,start;");
     $stmt->bindValue(":pid", $pid);
     $result=$stmt->execute();
     return($result);