path-sort-extra
v1.0.1
Published
<div align="center"> # Path-sort </div>
Downloads
3
Readme
Usage
As a function
import { pathSort } from 'path-sort-extra'
const separator = '/'
const array = pathSort(arrayToSort, separator);
As a sort callback function
import { sortCallback } from 'path-sort-extra'
const separator = '/',
const sortFn = sortCallback(separator);
array.sort(sortCallback);