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

Hey there, I’m trying to display a list of months as text in the standard order i.e Jan, Feb, March, etc but I’m struggling to use the sort filter to do so.

A user will select months they are available from an option set that is Jan, Feb, March, etc. Sometimes they’ll select it in a random order so when it displays on there profile it’ll look something like:

Does anyone know how I can use the sort filter to display the list in the right order?

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:

It worked :slight_smile: Thanks so much man!

This topic was automatically closed after 70 days. New replies are no longer allowed.