sindresorhus/sort-on

Add the ability to sort boolean values

Open

#18 ouverte le 21 mars 2020

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (200 stars) (14 forks)user submission
enhancementhelp wanted

Description

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! 😄

Guide contributeur