How to display a list of text in the order of an option set?

You can add an attribute to the Option Set called Order and sort by this attribute. See the example below:

Option set has an extra attribute:

You can set each option’s order by clicking on Modify Attributes:
image

And then you can sort by this order: