Enumeration method implementations for "minby" and "maxby".