remove unused sort check