34 packages found
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Sort an array by its property
Calculate ascending and descending moon between 2001 and 2100.
Compute the falling factorial.
- stdlib
- stdmath
- mathematics
- math
- special function
- special
- function
- gamma
- factorial
- descending
- lower
- falling sequential
- falling
- number
Arrays never been so smart before.
- arraybrain
- array
- arrays
- sorter
- smart sort
- smart array
- array sort
- descending
- ascending
- complex array sorter
- complex array duties
- object
- smart object sort
- object sort
- View more
Sort an array of objects by one or more properties in any order. Multiple properties and custom comparison functions can be used.
- arr
- array
- asc
- ascend
- ascending
- desc
- descend
- descending
- multiple
- nested
- order
- ordered
- orderby
- orderbydescending
- View more
🎀 0 dependency values based object keys sorting.
Sort array of arrays by column, rippling the sorting outwards from that column
Small library for .
Fast and powerful array sorting. Sort an array of objects by one or more properties. Any number of nested properties or custom comparison functions may be used.
Sorts a number array ascending or descending
⚔️ Sort array of objects by key or function
Binary search -based indexOf for sorted arrays.
- binary
- search
- -based
- indexof
- sorted
- arrays
- arr
- array
- element
- find
- [compare]
- [comparenumeric=false]
- sort
- numerically
- View more
## Installation
Create array comparator function.
- create
- array
- comparator
- function
- [options]
- [optionsnumeric=false]
- sort
- numerically
- defaults
- lexicographic/alphabetic
- [optionsdescending=false]
- descending
- order
- ascending
- View more
Find the array index of where to add an element to keep it sorted.
- find
- array
- index
- add
- element
- sorted
- arr
- insertion
- [compare]
- [comparenumeric=false]
- sort
- numerically
- defaults
- lexicographic/alphabetic
- View more
For a sorted array, add an element. Whichever comparator function was used to sort the array, can be passed. Also supports comparator-builder options. For reference, see: https://github.com/bemoje/bemoje-arr-sort-comparator
- sorted
- array
- add
- element
- whichever
- comparator
- function
- sort
- passed
- supports
- comparator-builder
- options
- reference
- https://github.com/bemoje/bemoje-arr-sort-comparator
- View more
Sort an array considerably faster than the native Array.prototype.sort as a drop-in replacement. Fork of of the famous timsort module, but this module allows for passing comparator-builder options instead of a comparator function. In short, advanced compa
- sort
- array
- considerably
- faster
- native
- arrayprototypesort
- drop-in
- replacement
- fork
- famous
- timsort
- module
- passing
- comparator-builder
- View more
Binary search -based indexOf for sorted arrays.
- binary
- search
- -based
- indexof
- sorted
- arrays
- arr
- array
- element
- find
- [compare]
- [comparenumeric=false]
- sort
- numerically
- View more
Remove all duplicate elements in a sorted array, leaving only uniques.
- remove
- duplicate
- elements
- sorted
- array
- leaving
- uniques
- arr
- [compare]
- [comparenumeric=false]
- sort
- numerically
- defaults
- lexicographic/alphabetic
- View more