tring to get sorting working