1. sort-desc
Sort array elements in descending order.
sort-desc
Package: sort-desc
Created by: jonschlinkert
Last modified: Wed, 12 Jul 2023 19:15:38 GMT
Version: 0.2.0
License: MIT
Downloads: 1,752,787
Repository: https://github.com/jonschlinkert/sort-desc

Install

npm install sort-desc
yarn add sort-desc

sort-desc NPM version Build Status

Sort array elements in descending order.

Install

Install with npm

 $ npm i sort-desc --save

Usage

 var descending = require('sort-desc');
['a', 'b', 'c', 'd'].sort(descending);
//=> ['d', 'c', 'b', 'a']

Running tests

Install dev dependencies:

 $ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert
Released under the MIT license.


This file was generated by verb-cli on July 17, 2015.

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code