isaacs

isaacs/string-locale-compare

Compare strings with Intl.Collator if available, falling back to String.localeCompare otherwise

JavaScript
5
0
Blue Oak Model License 1.0.0

A tiny Node/JavaScript utility that provides a deterministic string‑comparison function. It uses `Intl.Collator` when available (or falls back to `String.localeCompare`) and forces a specific locale and optional Collator settings, making it ideal for developers who need reliable, locale‑aware sorting of strings across environments.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

isaacs's profile
isaacs
13 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet