From: Andrew Dolgov Date: Sun, 30 Jul 2017 12:25:49 +0000 (+0300) Subject: get_all_labels: order by caption X-Git-Tag: 17.12~136 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=51f13e77367df10ca4eae8ab7a253c350c7b51d8;p=tt-rss.git get_all_labels: order by caption --- 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);