‎2019 Jun 28 12:41 PM
‎2019 Jun 28 1:17 PM
SELECT ORDER or "ABAP" (ITAB) sort? Both are described in ABAP documentation...
‎2019 Jun 28 2:14 PM
I would answer "as any other programming language". Can you explain what is your doubt?
‎2019 Jun 28 9:11 PM
Gently. 🙂 I'm also curious what exactly is the concern here.
‎2019 Jun 29 8:12 AM
‎2019 Jul 01 7:46 AM
Character-like columns are sorted by default by their binary representation, encoding in the code page of the current text environment.
You can force a 'textual' sort using option AS TEXT to use locale text environment, which depends on Language, Operating System and Kernel (e.g. rules fo upper/lower case or accented characters, or characters that don't belong to the language...) Can you guess performance impact of this option...
‎2019 Jul 01 8:15 AM
My question is how are alphanumeric data sorted. For example:
ABC1234
ABC7865
ABC0859
ABB9999
90
ANHYT
How will the above get sorted ?
‎2019 Jul 01 8:22 AM
‎2019 Jul 01 8:51 AM
It will sort
alphanumerically. It seems you don't know what "alphanumerically" means, so I suggest you write a short program and find out exactly how this data will be sorted on your system..
‎2019 Jul 01 9:30 AM
Hi Matthew,
I guess alphanumeric means a combination of characters and numeric data. Can you please explain the reason for keeping 90 in between after sorting and not at the either extreme ends i.e. top or down.
Regards,
Debanjan Das
‎2019 Jul 01 10:09 AM
I have just written a program, as I suggested you did, that takes those values in and sorts them. The '90' record comes at one of the extreme ends. It does not come in between. Why do you think it does?
‎2019 Jul 01 9:28 PM
Raymond Giuseppi as far as I can see in the documentation, with Unicode systems, SORT without AS TEXT doesn't depend anymore on the code page but only on the Unicode code point, and SORT with AS TEXT depends on the locale (based on the logon language or the one set by SET LOCALE).
Debanjan Das Concerning SORT with AS TEXT, for example the locales for languages Serbian, Chinese and Thaï, have characters sequenced as follows, here from the 4900th position; both the glyph and its Unicode code point are represented; it's done by a custom program:

SAP online example gives this result (1st sorting is based on the Unicode code points, 2nd and 3rd on the order of characters in the current locale):

‎2019 Jul 02 1:28 AM
so in general, the alphanumeric would be understood by computer in term of sequence of 2 bit 0 & 1. then sort is compare those sequence.