The ORD-MAX function returns a value that is the ordinal number of the argument-1 that contains the maximum value.
FUNCTION ORD-MAX ( { argument-1 } ... )