Comparing three integers?

Array min/max has been in the engine for while now: