Closed micky2be closed 7 years ago
Could you explain the problem?
Is it that it picks zh-CN
above and not for instance en
that is first in the list.
Your changes introduces some failed tests.
Yes, I believe it should go for en
and not zh-CN
.
What tests are failing?
I run npm test
on my local with success. And Travis seems happy too.
@micky2be Thanks.
The sort method in not stable and doesn't always keep the original order of the list pass to it. To fix that and to keep an order of priority (with equals values of
q
) I introducedstable
as a dependency.Extreme use case: