forked from Cavemanon/cavepaintings
sort alias CSV file the same way as the table
This commit is contained in:
2
ext/alias_editor/main.php
Executable file → Normal file
2
ext/alias_editor/main.php
Executable file → Normal 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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user