0.0.12 • Published 11 months ago
true-sort v0.0.12
true-sort

Truly sort anything, and with zero dependencies 🚀
Installing
Via npm:
$ npm install [--save-dev] true-sort
Via yarn:
$ yarn add [--dev] true-sort
Usage
import { trueSort } from "true-sort";
// or
import trueSort from "true-sort";
const unsortedData = ...;
const options = { preferedSortKeys: "id" };
const sortedData = trueSort(unsortedData, options);
CLI
true-sort
can be used on JSON files trough the CLI.
$ node node_modules/true-sort/dist/cli.js path/to/json [options]
Options
Option | Type | Description |
---|---|---|
preferedSortKeys | string | string[] | One or prioritized list of keys to sort object keys upon. |
0.0.10
11 months ago
0.0.11
11 months ago
0.0.12
11 months ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.1
4 years ago
1.1.0
4 years ago
0.0.4-development
4 years ago
0.0.3-development
4 years ago
0.0.2-development
4 years ago
0.0.1-development
4 years ago
0.0.0-development
4 years ago