Fixed sorting query for production admin screen.