sindresorhus/sort-on

Add the ability to sort boolean values

オープン

#18 opened on 2020/03/21

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (14 件のフォーク)user submission
enhancementhelp wanted

Repository metrics

Stars
 (200 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

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