Sort order in get_posts [closed]

The problem here is not that the posts that are being wrongly displayed are displayed under the wrong category, it’s that they’re not actually in the right category. For example, the post “Supporting healthy eating choices” is displayed under “O” as it has the category “O”. Going to your backend and assigning the proper category to these posts should fix it. In short, there’s nothing wrong with your code, some of your posts just belong to the wrong categories.