|
At 12:26 10/26/2001, Angela Wawrzszek wrote: >I have a 2 position text field that I am sorting by. The codes go from AA, >AB...A1, A2... BB, B1 etc. We are sending this to a sql server. When they >sort it, the order is A1, AA, ...B1, BB The numerics are taking >precedence. They say it is sorting ascii. I thought ascii sort was >alpha/numeric also??? Well, it is, but the ASCII numeric characters come before the letters in the collating sequence (digits are x'30' - x'39' (if I mismember correctly), and all of the letters are after that. With EBCDIC, it's reversed. The numbers are x'F0' - x'F9' (again, with possible mismemberment), and all of the letters are before that. So, when you do a character set translation from EBCDIC to ASCII, you actually modify the collating sequence. Pete Hall pbhall@execpc.com http://www.execpc.com/~pbhall/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.