Fixed category-access sorting (backend), FIX #531