@node-novel/sort

sort callback for @node-novel

Stats

StarsIssuesVersionUpdatedCreatedSize
@node-novel/sort
001.0.182 months ago3 years agoMinified + gzip package size for @node-novel/sort in KB

Readme

@node-novel/sort

sort callback for @node-novel

API

import { defaultSortCallback, createSortCallback } from '@node-novel/sort';

let arr1: string[] = [];

arr1.sort(defaultSortCallback);

let arr2: {key: string, name: string}[] = [];

arr2.sort(function (a, b)
{
    return defaultSortCallback(a.key, b.key)
    || defaultSortCallback(a.name, b.name)
})

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.