Sort fields in list correctly