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

贡献者指南