sindresorhus/sort-on

Add the ability to sort boolean values

Open

#18 建立於 2020年3月21日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (200 star) (14 fork)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! 😄

貢獻者指南