From 51f13e77367df10ca4eae8ab7a253c350c7b51d8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 30 Jul 2017 15:25:49 +0300 Subject: [PATCH] get_all_labels: order by caption --- classes/labels.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/labels.php b/classes/labels.php index e19a2967..c46f70c9 100644 --- a/classes/labels.php +++ b/classes/labels.php @@ -36,7 +36,7 @@ class Labels static function get_all_labels($owner_uid) { $rv = array(); - $result = db_query("SELECT id, fg_color, bg_color, caption FROM ttrss_labels2 WHERE owner_uid = " . $owner_uid); + $result = db_query("SELECT id, fg_color, bg_color, caption FROM ttrss_labels2 WHERE owner_uid = '$owner_uid' ORDER BY caption"); while ($line = db_fetch_assoc($result)) { array_push($rv, $line);