Sorting my sub-menu

It seems that all context menus are sorted alphabetically.

I have a for loop that adds menu items in a sub-menu that I’ve created. Is there a way to override the alphabetic sorting in a menu (except native menus, of course)?

It is possible to add a number before every menu item, but that looks cluttered and I’d rather not have that.

I found a working solution to this that might not be standard practice, involving newlines. Using “\n” before and after the text within a menu entry will also get rid of the tilde sign on tool menus. Hush hush…

LOL. That seems pretty safe! Anyway. I never thought that was a tilde sign. I actually thought it was a fucked up sine.
Also; as far as I’ve seen the \n method does not really make for actual sorting bossery.