ccc-tnt-psd2ui/npm-packages/mac-v3.4.+/semver/functions/rsort.js
2023-07-24 11:13:08 +08:00

4 lines
149 B
JavaScript

const compareBuild = require('./compare-build')
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
module.exports = rsort