The collating sequence for a code page is neither right nor wrong, it just is. The appropriate way to sort is to take locale into account. That implies that two sorts of the same data in the same code page on the same machine may be different.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Paul Gilmartin <0000000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Tuesday, April 30, 2019 9:09 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Bigotry against mixed case was Re: Upper case for ISPF and SDSF On Tue, 30 Apr 2019 21:05:00 -0300, Clark Morris wrote: > >A more important reason was that addition of mixed case in either >ISO/ASCII changed a compare from a simple Compare Logical Character >into a subroutine. While this was always true if a true dictionary or >phone book sort is wanted, this would make it true for virtually all >compares. Should A = a? If not should the sequence be A,a,B,b ....? > IBM 7030 did something like the latter, but neither is right; it's worse. An example: 1234 camel Camel CAMEL canary Canary CANARY cat Cat CAT ... Note that "CAMEL" comes after "Camel" but before "canary". So you can't simply say either that A<a or A>a. But would you argue that computers should scorn English lexical conventions? -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN