minWithId

fun <ID : Any, T> Field<ID, T>.minWithId(base: Pair<ID, T>, comparator: Comparator<Pair<ID, T>>): Pair<ID, T>

Returns the element yielding the smallest value of the given comparator. In case multiple elements are minimal, there is no guarantee which one will be returned.