Change sort order.
[quanweb.git] / main / db.go
index 53c0a2c37b0959cf9ca522067e1bc463ea6a1671..b636cffaed938752386174a32f5e60db54d13800 100644 (file)
@@ -57,7 +57,7 @@ func getDb() (*sql.DB) {
     g_mutex.Lock()
     defer g_mutex.Unlock()
     if nil == g_db {
-      config := getConfig()
+      config := GetConfig()
       g_db = openDb(config.user, config.pass, config.dbName)
     }
   }
@@ -214,7 +214,7 @@ func queryIds(criteria []SearchTerm) []int {
     args[i] = text
   }
 
-  query += " ORDER BY b.path"
+  query += " ORDER BY a.grouping,s.descr,b.volume,b.title,b.path"
 
   res := []int{}