Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ml-array-xy-sort-x

mljs694MIT1.0.2

Sort a set of point based on the abscissas values

readme

array-xy-sort-x

NPM version npm download

Sort a set of point based on the abscissas values.

Installation

$ npm install --save ml-array-xy-sort-x

Usage

import sortX from 'ml-array-xy-sort-x';

const x = [6, 5, 4, 3, 2, 1, 0, -1];
const y = [17, 16, 15, 14, 13, 12, 11, 10];
sortX({ x, y });

/* result -> {
    x: [-1, 0, 1, 2, 3, 4, 5, 6],
    y: [10, 11, 12, 13, 14, 15, 16, 17]
} */

License

MIT

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.2 (2021-03-04)

Note: Version bump only for package ml-array-xy-sort-x

1.0.1 (2019-10-02)

Note: Version bump only for package ml-array-xy-sort-x

1.0.0 (2019-06-29)

chore

  • update dependencies and remove support for Node.js 6 (dc23f9c)

BREAKING CHANGES

  • Node.js 6 is no longer supported

0.2.5 (2019-05-03)

Note: Version bump only for package ml-array-xy-sort-x

0.2.4 (2018-08-16)

Note: Version bump only for package ml-array-xy-sort-x

0.2.3 (2018-08-06)

Note: Version bump only for package ml-array-xy-sort-x

0.2.2 (2018-08-03)

Note: Version bump only for package ml-array-xy-sort-x

0.2.2 (2018-08-03)

Note: Version bump only for package ml-array-xy-sort-x

0.2.1 (2018-08-03)

Note: Version bump only for package ml-array-xy-sort-x

0.2.0 (2018-08-03)

Features

  • sortX: sort a list of points (38743e7)

0.1.0 (2017-10-07)

Features

  • sortX: sort a list of points (38743e7)