sort is done differently now