F
fcinelli
Hi all,
I am having a problem sorting a field that contains alphanumeric
values. The field contains values such as:
10.1, 10.2, 10.1.2, 10.2.1, 9.1, 3.1, 5.4 etc... This is the naming
convention my organization is using to identify departments so there
is no way around it.
Because some values have 2 decimals, I have to make this a text field
which messes up the sorting (it puts 10 above 9). I need to be able
to sort by proper numeric order. So the proper order might be
something like:
2.1
2.2
2.2.1
2.2.2
2.3
2.4
....
12.1
12.2
12.2.1
12.2.1.1
....
etc
I've created a field to represent a sorting key (number type field)
but I know it will complicate things later on when the user adds a new
record...the sorting key would no longer be valid because there would
be a cascading effect.
Does anyone have any advice on a procedure that will automate the
process of assigning sorting keys to each record?
Thanks
I am having a problem sorting a field that contains alphanumeric
values. The field contains values such as:
10.1, 10.2, 10.1.2, 10.2.1, 9.1, 3.1, 5.4 etc... This is the naming
convention my organization is using to identify departments so there
is no way around it.
Because some values have 2 decimals, I have to make this a text field
which messes up the sorting (it puts 10 above 9). I need to be able
to sort by proper numeric order. So the proper order might be
something like:
2.1
2.2
2.2.1
2.2.2
2.3
2.4
....
12.1
12.2
12.2.1
12.2.1.1
....
etc
I've created a field to represent a sorting key (number type field)
but I know it will complicate things later on when the user adds a new
record...the sorting key would no longer be valid because there would
be a cascading effect.
Does anyone have any advice on a procedure that will automate the
process of assigning sorting keys to each record?
Thanks