mathematica: fix `sort` predicate stability (#368433)

authored by philiptaron.tngl.sh and committed by GitHub 3eecbac9 dc1d7543

+1 -1
+1 -1
pkgs/applications/science/math/mathematica/default.nix
··· 30 30 let 31 31 versions = callPackage ./versions.nix { }; 32 32 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) ( 34 34 lib.filter ( 35 35 v: v.lang == lang && (version == null || isMatching v.version version) && matchesDoc v 36 36 ) versions