Commit 2025-10-22 00:08 1bbe77d5
View on Github →feat(Data/{Finset,Multiset}/Sort): give sort functions ≤ default argument (#27864)
Changes the Finset.sort and Multiset.sort functions to take ≤ as the default relation argument. Then removes this argument where possible through the rest of the library.
This involves switching the order of arguments, but I think this is fine, as this function is mostly called by dot notation anyway, and I think it is more typical for the first argument of such functions to have the type that matches the namespace.
Thanks to @eric-wieser for suggesting this approach
Zulip discussion: #mathlib4 > Redefine {Fin/Multi}set.sort to take linear order?