Add minmax{,_by,_by_key} functions to core::cmp
#109409
Merged
minmax{,_by,_by_key} functions to core::cmp
#109409