Files
coopgo/node_modules/sort-desc/README.md
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

33 lines
717 B
Markdown

# sort-desc [![NPM version](https://badge.fury.io/js/sort-desc.png)](http://badge.fury.io/js/sort-desc)
> Sort array elements in descending order.
## Install
#### Install with [npm](npmjs.org)
```bash
npm i sort-desc --save
```
## Usage
```js
var sortDesc = require('sort-desc');
console.log((['d', 'c', 'b', 'a']).sort(sortDesc));
//=> ['a', 'b', 'c', 'd']
```
## Author
**Jon Schlinkert**
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
***
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 15, 2014._