LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
jason_h2

Auto-sort for case structures that use enums

Status: New

Almost always when I use enums in a case structure I want them sorted. As I change and add elements to a type def enum I have to go through my case structure(s) and sort them manually. Why not have case structures auto-sort enums unless an different order is specified?

3 Comments
tst
Knight of NI Knight of NI
Knight of NI

I don't think I would want LV changing the order of cases automatically, just in case I happen to want them not in order. The rearranging dialog does have a button for sorting it, which means you need about 4 clicks to sort the cases.


___________________
Try to take over the world!
jason_h2
Member

Perhaps next to the "sort" button an "automatically sort this case structure" button would be nice.

GregSands
Active Participant

No reason to restrict it to enums (though that's a good use case) - an auto-sort setting could be equally useful for text, and numerics as well, if it was optional as Jason suggests.