Closed wgmyers closed 4 years ago
In getCountries.js
you have:
// Limit.
allCountries = allCountries.slice(0, limit);
// Sort & reverse.
const direction = reverse ? 'asc' : 'desc';
allCountries = orderBy(
allCountries,
[sortingKeys[sortBy]],
[direction]
);
Perhaps sort first, then limit?
Ok, forked, tried the change suggested above, it fixes the issue, have raised pull request :)
Fixed elsewhere
Output of:
corona -l 10
:Output of
corona
:China should be at #3 in both lists, but does not appear in the first.