Ensuring ordering in table of content and categories and resources. #41