Sort results alphabetically when returning all service statuses

This commit is contained in:
TwinProduction authored and Chris committed 2021-09-06 13:28:35 -04:00
1 parent 67642b130c
commit 670e35949e
5 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -522,7 +522,7 @@ func (s *Store) updateServiceUptime(tx *sql.Tx, serviceID int64, result *core.Re
}
func (s *Store) getAllServiceKeys(tx *sql.Tx) (keys []string, err error) {
rows, err := tx.Query("SELECT service_key FROM service")
rows, err := tx.Query("SELECT service_key FROM service ORDER BY service_key")
if err != nil {
return nil, err
}