changes in findExtremeOrders