get_all_labels: order by caption

This commit is contained in:
Andrew Dolgov 2017-07-30 15:25:49 +03:00
parent 5e78b0c253
commit 51f13e7736
1 changed files with 1 additions and 1 deletions

View File

@ -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);