You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In that example I'm sorting by status and then by title. Status has a custom comparer and title does not. However, you can see in the logs that the status comparer is being called for the title sort as well. It does not fall back to the default once a comparer has been given.
If I remove the numeric comparer from status, or add the alpha comparer to title, or if I remove the numeric comparer from status and add the alpha comparer to title then it outputs as expected.
The text was updated successfully, but these errors were encountered:
It appears that if you are using
sort.by()
with an array, customcomparer
s are not working as expected.See this minimal test case.
In that example I'm sorting by
status
and then bytitle
. Status has a customcomparer
andtitle
does not. However, you can see in the logs that thestatus
comparer is being called for thetitle
sort as well. It does not fall back to the default once a comparer has been given.I would expect the test case to output
However it outputs
If I remove the
numeric
comparer fromstatus
, or add thealpha
comparer totitle
, or if I remove thenumeric
comparer fromstatus
and add thealpha
comparer totitle
then it outputs as expected.The text was updated successfully, but these errors were encountered: