To use a custom sort order, first you need to enable custom sorting for that Portal. You can do this from the Portal menu:
Once turned on, click Edit Order to enable order editing mode:
You can then drag the icons to the desired order, then click the green Done button:
Your portal is now in a custom sort order!