Skip to content

Commit

Permalink
Sort by key comparing as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-mendonca committed Jul 24, 2024
1 parent 425d254 commit b8bc186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/MoGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function generateString(Translations $translations): string
$messages[$originalString] = $translation;
}

ksort($messages);
ksort($messages, SORT_STRING);
$numEntries = count($messages);
$originalsTable = '';
$translationsTable = '';
Expand Down

0 comments on commit b8bc186

Please sign in to comment.