Skip to main content

Helpers for sorting arrays of complex objects simply with Array.sort() or Array.toSorted()

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (1.0.2)

Utility for sorting arrays.

Helpers for sorting arrays with Array.prototype.sort | Array.prototype.sort and Array.prototype.toSorted | Array.prototype.toSorted

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @langpavel/create-comparator

Import symbol

import * as mod from "@langpavel/create-comparator";

Add Package

npx jsr add @langpavel/create-comparator

Import symbol

import * as mod from "@langpavel/create-comparator";

Add Package

yarn dlx jsr add @langpavel/create-comparator

Import symbol

import * as mod from "@langpavel/create-comparator";

Add Package

pnpm dlx jsr add @langpavel/create-comparator

Import symbol

import * as mod from "@langpavel/create-comparator";

Add Package

bunx jsr add @langpavel/create-comparator

Import symbol

import * as mod from "@langpavel/create-comparator";