add ordering to categories