get list sorting working