Underscore.sort Usage _.sort(countries, ['gold', 'silver', 'bronze'], function (a, b) { return b - a; });