Fixed sort check