Re:DRY is an over-rated programming principle?
by Banana699 on Thursday July 07, 2022 @01:34PM
(#32016924)
To play the fun game of charitability, that engineer could have been talking about sort stability. Which could technically violate the property you want.
A quick search however does say that Java's .sort() is stable.
My senior engineer advised me against using Java .sort() because “we didn’t write it so we couldn’t be sure it would do the same thing every time.”