The ORDMIN function returns a value that is the ordinal number of the argument that contains the minimum value. The type
of this function is integer.
Usage
FUNCTION ORDMIN ({argument1} ... )
Parameters
argument1

If more than one
argument1 is specified, all arguments must be of the same class.

Returned Values
 The returned value is the ordinal number that corresponds to the position of the
argument1 having the least value in the
argument1 series.
 The comparisons used to determine the least valued
argument1 are made according to the rules for simple conditions.
 If more than one
argument1 has the same least value, the number returned corresponds to the position of the leftmost
argument1 having that value.