On 04/22/08 6:24 PM, "Ron Carr" <[EMAIL PROTECTED]> wrote in whole or in
part:

> Not to nit pick, but in ASCII, in any given position, a numeric will sort in
> front of an alpha character.
> The problem is in the positions.
> If you can guarantee, for instance, a 3 character field, it is possible,
> (and a quick fix in the stated situation) to insert a zero in front of a
> single digit to make what is a 3 character text field: the whole field will
> then sort correctly.

Right, because it then becomes "ASCII text", right? :)

    a00001
    a00002
    a10000
    a20000

I agree, but for sake of sanity, make your TEXT as TEXT and your NUMBERS as
NUMBERS and sort correctly they will (bad Yoda quote).

Beverly
 
> However, for any general design these should indeed be two separate fields,
> handled as described in any of the preceeding messages.
> 
> Pedantic, huh?
> 
> Ron
> 
> Ah, yep! I just wanted to make sure that everyone knows that "numbers"
> inside of "text" do NOT sort numerically. Ergo the two fields, or
> "padding-with-zeros" trick that Don so graciously described.
> 
> Assumption is that the "alpha" will always be ONE character and the "number"
> will always be less than "1000,000,000". Ergo the two fields, in my
> approach. Keep 'em separate and don't worry about it, sort by both, of
> course. :D

Reply via email to