🌜
🌞

Best JavaScript Sorting Libraries

postcss-sorting

postcss-sorting

v7.0.1

PostCSS plugin to keep rules and at-rules content in order.

Last Commit
Aug 14, 2022
GitHub Stargazers
480
License
MIT
Contributors
8
match-sorter

match-sorter

v6.3.1

Simple, expected, and deterministic best-match sorting of an array in JavaScript

Last Commit
Jul 1, 2022
GitHub Stargazers
3,094
License
MIT
Contributors
31
toposort

toposort

v2.0.2

Topological sort of directed ascyclic graphs (like dependecy lists)

Last Commit
Apr 28, 2018
GitHub Stargazers
277
License
MIT
Contributors
7
@hapi/topo

@hapi/topo

v6.0.0

Topological sorting with grouping support

Last Commit
May 3, 2022
GitHub Stargazers
108
License
BSD-3-Clause
Contributors
json-stable-stringify-without-jsonify

json-stable-stringify-without-jsonify

v1.0.1

deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies

Last Commit
May 8, 2020
GitHub Stargazers
8
License
MIT
Contributors
8
compare-func

compare-func

v2.0.0

Get a compare function for array to sort

Last Commit
Apr 4, 2022
GitHub Stargazers
16
License
MIT
Contributors
3
thenby

thenby

v1.3.4

Micro library for sorting arrays using the firstBy().thenBy().thenBy() syntax

Last Commit
Feb 7, 2022
GitHub Stargazers
643
License
Apache-2.0
Contributors
7
sort-keys

sort-keys

v5.0.0

Sort the keys of an object

Last Commit
Apr 16, 2021
GitHub Stargazers
91
License
MIT
Contributors
8
alphanum-sort

alphanum-sort

v1.0.2

Alphanumeric sorting algorithm

Last Commit
Oct 3, 2015
GitHub Stargazers
28
License
MIT
Contributors
1
toposort-class

toposort-class

v1.0.1

Topological sort of directed acyclic graphs (like dependecy lists)

Last Commit
May 26, 2022
GitHub Stargazers
22
License
MIT
Contributors
4
array-sort

array-sort

v1.0.0

Fast and powerful array sorting. Sort an array of objects by one or more properties. Any number of nested properties or custom comparison functions may be used.

Last Commit
Mar 11, 2018
GitHub Stargazers
65
License
MIT
Contributors
5
node-object-hash

node-object-hash

v2.3.10

Node.js object hash library with properties/arrays sorting to provide constant hashes

Last Commit
Sep 14, 2021
GitHub Stargazers
70
License
MIT
Contributors
6
fela-sort-classnames

fela-sort-classnames

v12.2.0

Fela enhancer to sort classnames in alphabetic order

Last Commit
Jul 6, 2022
GitHub Stargazers
2,193
License
MIT
Contributors
99
default-compare

default-compare

v1.0.0

Basic sort algorithm that has similar behavior to Array.prototype.sort for null and undefined, but also allows sorting by an object property.

Last Commit
Sep 11, 2017
GitHub Stargazers
3
License
MIT
Contributors
1
json-stringify-nice

json-stringify-nice

v1.1.4

Stringify an object sorting scalars before objects, and defaulting to 2-space indent

Last Commit
May 6, 2021
GitHub Stargazers
25
License
ISC
Contributors
2
decay

decay

v1.0.12

Famous sorting algorithms based on vote popularity and time

Last Commit
Sep 9, 2018
GitHub Stargazers
367
License
MIT
Contributors
2
array-timsort

array-timsort

v1.0.3

Fast JavaScript array sorting by implementing Python's Timsort algorithm

Last Commit
Oct 1, 2020
GitHub Stargazers
3
License
MIT
Contributors
4
sort-on

sort-on

v5.0.0

Sort an array on an object property

Last Commit
Nov 17, 2021
GitHub Stargazers
90
License
MIT
Contributors
8