fix the fact that searching was broken if sorting by visits in /admin/