Subject Re: [firebird-support] Problem with sorting string field like nuber field conteins numbers at the begining and sometimes letters after number.
Author Michael Ludwig
Piotr Olszewski schrieb am 07.10.2012 um 18:46 (+0200):

> I have string field (varchar(20) which contains number, but sometimes
> has some letters on the end.

House numbers? :)

> i need:
>
> 12
> 13
> 13a
> 14
> 15

Try to split the field into two fields NUMPART and CHARPART, and then
ORDER BY NUMPART, CHARPART.

Or else, do the sorting in the application, not the database.

Michael