Don said:
I work with federal documents that will not allow me to change the numbering
of items. I need to sort in ascending order, yet I cannot seem to get '2' to
sort before '10'. Any ideas??
I am working with numbers such as 1.0 through 1.23.15
Those are not numbers. They could be described as Codes perhaps, but they are
text strings that happen to predominantly contain digits rather than letters and
will therefore sort as text.
It's a common misapplication of the label. People always refer to Social
Security "numbers" and license plate "numbers" (serial "numbers", part
"numbers"), etc., but if they have dashes or more than one decimal point then
that are not numbers in the literal sense which is what the database cares
about.
You could sort on a derived value of Val([FieldName]) which would give you a
numerical return value made up of all of the characters up until the first
character that cannot be interpreted properly as a number ("1.23.15" will return
1.23). That might be closer to what you want. To get any better you would need
to derive multiple columns consisting of each numerical "piece" and sort on all
of those.