…and the categories are guaranteed to be in the order in which they are rendered on the page? In that case, I need no further explanation.