sort alias CSV file the same way as the table

This commit is contained in:
Shish 2012-03-25 03:32:32 +01:00
parent b628bcfa86
commit cd8ec7bf41

2
ext/alias_editor/main.php Executable file → Normal file
View file

@ -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";
}