sort without ignoring hyphens
When I do string comparisons in perl the strings seem to ignore the
embedded hyphens.
I want to sort strings assuming the 'dictionary' order of the chars is
ASCII order: hypen, 0-9, A-Z.
It appears linux sort also has the problem (LC_ALL is blank).
Any ideas? I want to avoid a brute force char by char sort if
possible.
Thanks
.
Relevant Pages
- Re: sort without ignoring hyphens
... It appears linux sort also has the problem. ... I want to avoid a brute force char by char sort if ... It appears to work in Perl: ... I'm looking for the perl way of comparing strings. ... (perl.beginners) - Re: a string, a string array and character array
... which defined its "char" to be in the range -128 to 127. ... any member of the implementation's basic character set. ... with strings, like sorting. ... Note that does not define any sort method and the text ... (comp.soft-sys.matlab) - Re: Highly efficient string reversal code
... char * my_strrev{ ... I'm sure it breaks some sort of ISO magic, ... Not "magic" but it has undefined behaviour on empty strings. ... (comp.lang.c) - Re: Solution for sorting an array alpha-numerically
... strings up into groups and sorting the groups seperately, ... > so that numeric and alphabetic data sort as seperate groups. ... To the same project as the web page, add the class AlphaNumCompare() ... (microsoft.public.dotnet.general) - Re: Sets and portability (was) Re: Is ISO Pascal compatible with J&W (original) Pascal ?
... strings, the user can control the length by the data they process; ... >> The computer world is more complex than it's ever been (eg Unicode) ... The Pascal `Char' type can be this size (unlike C, ... > Note that ansi->wide conversion is codepage sensitive. ... (comp.lang.pascal.misc) |
|