# sort-desc [![NPM version](https://badge.fury.io/js/sort-desc.svg)](http://badge.fury.io/js/sort-desc) [![Build Status](https://travis-ci.org/jonschlinkert/sort-desc.svg)](https://travis-ci.org/jonschlinkert/sort-desc) > Sort array elements in descending order. ## Install Install with [npm](https://www.npmjs.com/) ```sh $ npm i sort-desc --save ``` ## Usage ```js var descending = require('sort-desc'); ['a', 'b', 'c', 'd'].sort(descending); //=> ['d', 'c', 'b', 'a'] ``` ## Related projects * [sort-asc](https://github.com/jonschlinkert/sort-asc): Sort array elements in ascending order. * [sort-object](https://github.com/doowb/sort-object): Sort the keys in an object. ## Running tests Install dev dependencies: ```sh $ npm i -d && npm test ``` ## Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/sort-desc/issues/new) ## Author **Jon Schlinkert** + [github/jonschlinkert](https://github.com/jonschlinkert) + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ## License Copyright © 2015 Jon Schlinkert Released under the MIT license. *** _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 17, 2015._