Is it possible to sort information that includes a choice column by the order in the choice column's definition? So for example, there is a column with choices defined in this order:
Choice Z
Choice C
Choice B
Choice A
If I want to pull together a bunch of records with counts for each of those values, and I want to display them in a gallery and order it by not the choice value alphabetically, but by the definition order, like this:
Choice Z - 4
Choice C - 8
Choice B - 0
Choice A - 1
Can it be sorted by the defined order? I tried pulling in 'Choices([@SP].field) but the resulting table only has the Values and not also an ID. I was thinking if I can get the ID and Value, then I could sort by that ID.
Is it possible to get the value and ID? (I'm guessing there is an ID) Since there can be quite a few choices, I don't want to hard code it.