You can manually set the order that subcategories are displayed in by Reordering categories and setting fixed category positions.
Discourse typically orders categories based on activity, with the most recently active categories appearing at the top of your categories page and in the main navigation category dropdown. However, you can set fixed positions for your categories if you prefer a custom, static order.