]> git.wh0rd.org Git - tt-rss.git/commitdiff
filter dialog: sort rules by reg_exp
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 25 Oct 2012 08:24:24 +0000 (12:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 25 Oct 2012 08:24:24 +0000 (12:24 +0400)
classes/pref/filters.php

index 57ba395875594ad288046d19d78ad42087ca5e95..1f581e0e3b00ee89501547ff7fb3f0313c4b63ce 100644 (file)
@@ -239,7 +239,7 @@ class Pref_Filters extends Handler_Protected {
                print "<ul id='filterDlg_Matches'>";
 
                $rules_result = db_query($this->link, "SELECT * FROM ttrss_filters2_rules
-                       WHERE filter_id = '$filter_id' ORDER BY id");
+                       WHERE filter_id = '$filter_id' ORDER BY reg_exp, id");
 
                while ($line = db_fetch_assoc($rules_result)) {
                        if (sql_bool_to_bool($line["cat_filter"])) {