I have a table field {LABITEM.Lab Item Number} which is string because dashes are used for sub-items. (1 can become 1-1, 1-1-1, etc.). But, of course, if I sort on Lab Item Number I get 1, 10, 11, 2, 22, 2-2, etc. I need a string to value formula that would sort the field as desired:
1, 1-1, 2, 2-2, 2-2-2, 22, 3, etc.
One more complication (but one I could live without dealing with, just, maybe, ignore), there might be some Items with letters or, more likely, numbers and letters (1a, 1b, 2a).
I am using Crystal Reports 8.5 and talking to Oracle tables.
Can anyone get me started on some formulas what will give me the sort order I need?
1, 1-1, 2, 2-2, 2-2-2, 22, 3, etc.
One more complication (but one I could live without dealing with, just, maybe, ignore), there might be some Items with letters or, more likely, numbers and letters (1a, 1b, 2a).
I am using Crystal Reports 8.5 and talking to Oracle tables.
Can anyone get me started on some formulas what will give me the sort order I need?