Removed sorting by visit count because the uid controls ordering (thanks
to David Ferguson for pointing that out).