Multiple priority sort Issue
mohak1990 opened this issue · comments
mohak1990 commented
matchSorter(arr, "t", {keys: ["Name","Surname"]})
In this case if both Name and Surname has "t", still it returns an empty string.
It works if any one of the 2 cases are passed.
Expected:
The return array should be a sorted one having "t" in any of the 2 cases(or both, but giving sort priority "Name")
Christian Ruigrok commented
According to the tests and a test I ran myself just now, this works fine.
Test for key priority
Maybe it would be nice to see the full code with the array supplied or perhaps a different example, to make sure?
mohak1990 commented
Sorry, I missed quotes for each case. Thanks