Skip to content

Commit 3eecbac

Browse files
authored
mathematica: fix sort predicate stability (#368433)
2 parents dc1d754 + bf74032 commit 3eecbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/applications/science/math/mathematica/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
let
3131
versions = callPackage ./versions.nix { };
3232

33-
matching-versions = lib.sort (v1: v2: lib.versionAtLeast v1.version v2.version) (
33+
matching-versions = lib.sort (v1: v2: lib.versionOlder v2.version v1.version) (
3434
lib.filter (
3535
v: v.lang == lang && (version == null || isMatching v.version version) && matchesDoc v
3636
) versions

0 commit comments

Comments
 (0)