max IDBy
inline fun <ID : Any, T, R : Comparable<R>> Field<ID, T>.maxIDBy(reductionType: ReductionType = ExcludingSelf, crossinline selector: (FieldEntry<ID, T>) -> R): ID?
Returns the ID of the entry that yields the largest value according to the given selector.
Return
the ID of the entry with the highest value, or null if none.
Parameters
reduction Type
specifies whether to include the local entry in the comparison (default is ExcludingSelf).
selector
a function that maps each entry to a comparable value.