Fix bug with admin sorting