Sorts items in descending order of length.
npm install longest-firstSorts items in descending order of length.
Requires Node.js 6.0.0 or above.
``bash`
npm i longest-first
The module exports a single function.
* Parameter: items (iterable): Values that should be sorted by their length property. (The original iterable is not modified.)
* Return Value: Array
`javascript
const longestFirst = require('longest-first')
longestFirst(['one', 'two', 'three']) // ['three', 'one', 'two']
// Supports the bind operator
['test', 'example']::longestFirst() // ['example', 'test']
``