mathematica: fix sort predicate stability (#368433)

This commit is contained in:
Philip Taron 2024-12-26 17:27:13 -08:00 committed by GitHub
commit 3eecbac9c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@
let
versions = callPackage ./versions.nix { };
matching-versions = lib.sort (v1: v2: lib.versionAtLeast v1.version v2.version) (
matching-versions = lib.sort (v1: v2: lib.versionOlder v2.version v1.version) (
lib.filter (
v: v.lang == lang && (version == null || isMatching v.version version) && matchesDoc v
) versions