UNPKG
semver
Version:
latest (7.7.4)
latest-6 (6.3.1)
legacy (5.7.2)
7.7.4
7.7.3
7.7.2
7.7.1
7.7.0
7.6.3
7.6.2
7.6.1
7.6.0
7.5.4
7.5.3
7.5.2
7.5.1
7.5.0
7.4.0
7.3.8
7.3.7
7.3.6
7.3.5
7.3.4
7.3.3
7.3.2
7.3.1
7.3.0
7.2.3
7.2.2
7.2.1
7.2.0
7.1.3
7.1.2
7.1.1
7.1.0
7.0.0
6.3.1
6.3.0
6.2.0
6.1.3
6.1.2
6.1.1
6.1.0
6.0.0
5.7.2
5.7.1
5.7.0
5.6.0
5.5.1
5.5.0
5.4.1
5.4.0
5.3.0
5.2.0
5.1.1
5.1.0
5.0.3
5.0.2
5.0.1
5.0.0
4.3.6
4.3.5
4.3.4
4.3.3
4.3.2
4.3.1
4.3.0
4.2.2
4.2.1
4.2.0
4.1.1
4.1.0
4.0.3
4.0.2
4.0.0
3.0.1
3.0.0
2.3.2
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0-beta
2.0.0-alpha
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
The semantic version parser used by npm.
github.com/npm/node-semver
npm/node-semver
semver
/
functions
/
sort.js
4 lines
(3 loc)
•
147 B
JavaScript
View Raw
1
2
3
4
const
compareBuild =
require
(
'./compare-build'
)
const
sort
= (
list, loose
) => list.
sort
(
(
a, b
) =>
compareBuild
(a, b, loose))
module
.
exports
= sort