Skip to content

Commit

Permalink
mathematica: fix sort predicate stability (NixOS#368433)
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron authored Dec 27, 2024
2 parents dc1d754 + bf74032 commit 3eecbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/applications/science/math/mathematica/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3eecbac

Please sign in to comment.