FoxProProgrammer
Programmer
Hello folks,
Here is an example of some data stored in a table:
R1
R4
R2
R3
R12
R11
C1
C2
C3
C22
C21
AR2
AR1
How do I write a Query to return the data sorted as follows:
AR1
AR2
R1
R2
R3
R4
R11
R12
C1
C2
C3
C21
C22
What I get is:
AR1
AR2
R1
R11
R12
R2
R3
R4
C1
C2
C21
C22
C3
Is there an easy way to do this, or am I going to have to write what looks like fairly complex string manipulations that separate the numbers from the characters, sort the numbers, and put the chars and nums back together after they are sorted?
Thanks,
dz
dzaccess@yahoo.com
Here is an example of some data stored in a table:
R1
R4
R2
R3
R12
R11
C1
C2
C3
C22
C21
AR2
AR1
How do I write a Query to return the data sorted as follows:
AR1
AR2
R1
R2
R3
R4
R11
R12
C1
C2
C3
C21
C22
What I get is:
AR1
AR2
R1
R11
R12
R2
R3
R4
C1
C2
C21
C22
C3
Is there an easy way to do this, or am I going to have to write what looks like fairly complex string manipulations that separate the numbers from the characters, sort the numbers, and put the chars and nums back together after they are sorted?
Thanks,
dz
dzaccess@yahoo.com