Fixed bug with admin sorting