mapbox-gl
Version:
A WebGL interactive maps library
19 lines (15 loc) • 445 B
JavaScript
/*!
* sort-asc <https://github.com/jonschlinkert/sort-asc>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
;
var assert = require('assert');
var sortAsc = require('./');
describe('sort object', function () {
it('should sort keys in ascending order.', function () {
var actual = (['a', 'b', 'c', 'd']).sort(sortAsc);
assert.deepEqual(actual, ['d', 'c', 'b', 'a']);
});
});