Focal Point
[SOLVED] BY - Conflict in Sorting

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6797016306

May 11, 2011, 06:36 AM
Ramkumar - Webfous
[SOLVED] BY - Conflict in Sorting
Hi,

I have a column in my Database table, which will be having data as Alphabets, numbers or combination of both...

Sample
-------
X
1
A
2B
RC


When I do a sorting BY(of) that column, The sorting is happening in such a way that Alphabets comes first and then the numbers...

Sample Sort
---------------
A
RC
X
1
2B


But in general, in any other programming language or Database, It is vice versa... Numbers always are sorted prior.

Is there a direct way of resolving this in webfocus?

While sorting, I need the numbers to come first and then the Alphabets.

This message has been edited. Last edited by: Kerry,


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
May 11, 2011, 07:50 AM
jimster06
Take a look at this.

The situation is not driven by WF but by the encoding on your platform.

Google "collating sequnce" for more information.

HTH


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
May 11, 2011, 07:55 AM
Ramkumar - Webfous
quote:
collating sequnce


Thank you Jim for the input.. I will check on this and let you know.


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
May 11, 2011, 09:35 AM
Francis Mariani
Jim,

Thanks for monitoring this forum from the rocking chair on your porch.

Cheers and have a great summer,

Francis.
May 11, 2011, 11:49 AM
jimster06
Thanks Francis.

And in the winter I monitor the forum from my lanai on Maui!

There is life after TABLE FILE!


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
May 12, 2011, 05:20 PM
Waz
I jealous Jim, and thanks for giving me/us all hope for the after life.
Smiler


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

May 17, 2011, 03:33 AM
Ramkumar - Webfous
quote:
There is life after TABLE FILE!

Good One


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5