'use strict';

var Semvish = require('semvish');


module.exports = function(arr) {
    if(!arr) {
        return;
    }

    return arr.slice().sort(Semvish.compare).reverse();
};

'use strict';

var Semvish = require('semvish');


module.exports = function(arr) {
    if(!arr) {
        return;
    }

    return arr.slice().sort(Semvish.rcompare);
};

Use rcomp instead of .reverse() in sort
Use rcomp instead of .reverse() in sort
