From cd8ec7bf41c331c709874a6a9087dc6ea6b9950a Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 25 Mar 2012 03:32:32 +0100 Subject: [PATCH] sort alias CSV file the same way as the table --- ext/alias_editor/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 ext/alias_editor/main.php diff --git a/ext/alias_editor/main.php b/ext/alias_editor/main.php old mode 100755 new mode 100644 index f03f0bac..8fc18a30 --- a/ext/alias_editor/main.php +++ b/ext/alias_editor/main.php @@ -122,7 +122,7 @@ class AliasEditor extends Extension { private function get_alias_csv(Database $database) { $csv = ""; - $aliases = $database->get_pairs("SELECT oldtag, newtag FROM aliases"); + $aliases = $database->get_pairs("SELECT oldtag, newtag FROM aliases ORDER BY newtag"); foreach($aliases as $old => $new) { $csv .= "$old,$new\n"; }