
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
array-of-arrays-sort-by-col
Advanced tools
Sort array of arrays by column, rippling the sorting outwards from that column
Sort array of arrays by column, rippling the sorting outwards from that column
This package is pure ESM. If you're not ready yet, install an older version of this program, 3.1.0 (npm i array-of-arrays-sort-by-col@3.1.0
).
npm i array-of-arrays-sort-by-col
import { strict as assert } from "assert";
import { sortByCol } from "array-of-arrays-sort-by-col";
// sort by second column, index number 1
assert.deepEqual(sortByCol([[1, 9, 4], [1], [1, 9, 3], [1, 9, 2]], 1), [
[1, 9, 2],
[1, 9, 3],
[1, 9, 4],
[1],
]);
Please visit codsen.com for a full description of the API.
To report bugs or request features or assistance, raise an issue on GitHub.
MIT License.
Copyright © 2010-2024 Roy Revelt and other contributors.
FAQs
Sort array of arrays by column, rippling the sorting outwards from that column
We found that array-of-arrays-sort-by-col demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.