You don’t need to change the code manually to adjust the order.
Click on the edit icon → By default “Locations” will be selected. You can toggle which Locations get shown here and there is a “Reorder” button on the right. You can toggle which ones are shown and change the order for Equipment and Properties too.
I can’t remember how/whether it’s possible to add separators though. You might need to use the code tab for that.