sindresorhus/sort-on

Add the ability to sort boolean values

Open

#18 geöffnet am 21. März 2020

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (200 Stars) (14 Forks)user submission
enhancementhelp wanted

Beschreibung

Currently, invoking:

sortOn([{x: true}, {x: false}], 'x')

Is returning:

[{x: true}, {x: false}]

It would be nice to return the following instead:

[{x: false}, {x: true}]

Cheers! 😄

Contributor Guide