1.0.1 • Published 3 years ago

path-sort-extra v1.0.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

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);