get sorting working again