fix the unused sort