adjust category sort order by rank for sidebar