path-sort-extra
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published
# Path-sort

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

Readme

Keywords

none

Package Sidebar

Install

npm i path-sort-extra

Weekly Downloads

0

Version

1.0.1

License

GPL-3.0

Unpacked Size

42.2 kB

Total Files

10

Last publish

Collaborators

  • seebeen