Subject | Re: [IBO] Change sort order to some custom logic |
---|---|
Author | mircostange |
Post date | 2002-06-10T10:44:42Z |
>to do
> To me, it just doesn't sound right to sort a character field
> 1,2,10,12,20,21, whereas 01,02,10,12,20,21 does. If you still want
> that, I suggest you do it through SQL by using CAST(<Field> ASINTEGER) in
> your select statement(s) (possibly a hidden column only for thesorting).
and I apologize for the strange requirements I have, but people would
like to differentiate between "01" and "1" (so padding is not
permitted) and some values may occur as "0123C" (so casting to
numeric doesn't work).
Seems this doesnt work....