Skip to content

Commit

Permalink
also sort table by ID
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Feb 18, 2025
1 parent c876253 commit a08b06d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/blockstate-upgrade-schema-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ function cmdDumpTable(array $argv) : int{
}

$table = loadUpgradeTableFromFile($tableFile, reverse: false);
ksort($table, SORT_STRING);

foreach(Utils::stringifyKeys($table) as $oldName => $mappings){
fwrite($output, "---------- MAPPING LIST: $oldName ----------\n");
Expand Down

0 comments on commit a08b06d

Please sign in to comment.