rsort.js 149 B

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