Get the (first) maximum value in an array determined by
arrayand the corresponding values will be used to rank the items. In all other cases this will be used as a path within each item in
arraywhose property at that path will be used to rank the item.
This function requires the following function which is included automatically: