0.0.5 • Published 5 years ago

sort-array-devfox v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Sort string arrays

Installation

npm install sort-array-devfox

Usage

sortStrings(stringArray: string[], options?: SortingOptions)

Possible Options:

  • orderBy which can take "asc" or "desc"
  • isCaseSensitive which can be true or false

Default options are { orderBy: "asc", isCaseSensitive: false }

Case Sensitivity:
Given an Array ["Za", "ma", "Ba", "aa"]

  • with case sensitive true => ["Ba", "Za", "aa", "ma"]
  • with case sensitive false => ["aa", "Ba", "ma", "Za"]

For more usage details see the Unit Tests

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago