sindresorhus/sort-on

Add the ability to sort boolean values

Open

#18 opened on 2020年3月21日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)JavaScript (200 stars) (14 forks)user submission
enhancementhelp wanted

説明

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

コントリビューターガイド