Add in sorting into nadir calculation for svs