sort check