Back to Explore

litejs/natural-compare-lite

GitHub
2 watchersOpen source

Last release:

Natural Compare (natural-compare-lite) provides a “natural ordering” string comparison for mixed letters and numbers, so items sort the way humans expect (for example, “img2” comes before “img10”). Use String.naturalCompare with JavaScript sort(), including for sorting arrays of strings or object fields, and it supports configuration for custom alphabets.

Project status

  • The GitHub source appears to be largely quiet, with the last upstream push on 2024-10-11. In the provided update history, the newest tagged update is v1.4.0 from 2015, so there is no evidence of regular or ongoing updates since then relative to today (2026-06-09).
  • Apparent update cadence is not active based on available evidence, since the provided updates span many years, and no recent tagged updates beyond 2015 are shown (despite an upstream push in 2024).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.4.0

    v1.4.0 ships with no provided release notes. The diff shows a change to the library entrypoint and distribution build, moving from attaching the comparator to String toward exporting it via CommonJS (with a fallback for non-module environments), and it updates the test and CI setup accordingly.

  • v1.3.1

    This release (v1.3.1) introduces a new implementation of String.naturalCompare in index.js and updates the package layout to make index.js the main entrypoint. The behavior of natural sorting is broadened (decimal fractions, negative numbers, and optional custom alphabet support), and the test suite and README were updated accordingly. No release notes were provided for this version, so changes can only be validated against the code diff.

    BreakingFeatures
  • v0.4

    Release v0.4 was published, but the publisher provided no release notes or change log details. No information is available here to assess new features, breaking changes, bug fixes, security, performance, or migration requirements for this version.

  • v0.3

    This release (v0.3) updates the library API to use a camelCase export name, and adjusts the project tooling and tests to match. It also changes some comparison operators inside the natural compare implementation, which can alter results for mixed-type inputs.

    Breaking
  • v0.2

    Release v0.2 contains build and packaging changes, and a functional change in the comparison logic. The release notes are missing, so the behavior and distribution changes below are inferred directly from the code diff.

    Breaking
  • v0.1

    This release is tagged v0.1 (published 2013-04-03), but no release notes were provided by the publisher. As a result, there is insufficient information to identify new features, breaking changes, bug fixes, security updates, performance improvements, or migration steps for developers.