Put the custom groups in the right order.