minor sorting issues