Sort instead of finding max & min.