I want to order things in the order 1, 1a, 1b, 2, 2a, 2b, ... on a lot of places. I am considering the following options:
1: use an enum field for 1, 1a, 1b, 2, 2a, 2b, ... such that it will order nicely. Downside defining on different places an enum like that.
2: create an extra table with two fields. A string field with the values 1, 1a, 1b, 2, 2a, 2b, ... and an order index and union with that table everywhere that ordering is needed. Downside is lots of unions.
What options would you advise, or do you consider other options?
Thanks
JOINs? Also, does the ordering follow a specific algorithm in all places? For example, are all of the values always <number><letter>?