I have a column that is alphanumeric. It usually contains numbers but may have a suffix. So the following contents:

1
10
10a
2b

should be ordered like this:

1
2b
10
10a

I use this clause to do so:

 TO_CHAR( TRANSLATE( tab.col,'ABCDEFGHIJKLMNOPQRSTUVWXYZ ',' '), '999999')    DESC,
                  TRANSLATE( tab.col,'1234567890',' ' )


On 7/11/06, Teddy Payne <[EMAIL PROTECTED]> wrote:
Can you give an example of what you are trying to achieve?


On 7/11/06, Beth Bowden < [EMAIL PROTECTED]> wrote:
I need to sort an iterator by an _expression_. Is there a way to do this? 

TIA.

Beth


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



--
<cf_payne />

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to