Closed chapmanjacobd closed 5 years ago
I don't think that this is possible with match-sorter by itself. You may need to group the array into two unique arrays which have l = false
and those which do not, then run match sorter for each and then combine them with the l = false
group first.
I'm not sure if this is possible with the threshold option but I'm looking to prioritize when
l = false
as the most important key to sort on. so results withl = false
will be at the top of the resultsRelevant code or config:
I can't figure out a way to put
l
as a key. I tried using different thresholds but I couldn't wrap my head around the threshold options