Skip to content

Commit

Permalink
fix bug while sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
fschirinzi committed May 4, 2021
1 parent a575335 commit 1eec188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/ValidateTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function handle(): int
->put('foundIn', join(',', $item->get('foundIn')))
->only(['file', 'key', 'foundIn', 'missingIn']);
})
->sortBy(['key'])->sortBy(['file']) // Reverse sort; see https://github.com/laravel/ideas/issues/11
->sortBy('key')->sortBy('file') // Reverse sort; see https://github.com/laravel/ideas/issues/11
->toArray();

$this->table(['File', 'Key', 'Found in', 'Missing in'], $itemsThatMissTranslation);
Expand Down

0 comments on commit 1eec188

Please sign in to comment.