News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Sorts in Masmlib

Started by jimg, March 22, 2020, 04:59:11 AM

Previous topic - Next topic

Adamanteus

 I could mark, that for strings in C exists collate strings function - strcol  :eusa_boohoo:

hutch--

I should have explained, in QE its the tokeniser that strips out the high ascii, in order, load the text file, tokenise it then sort the tokenised array.

daydreamer

Quote from: jj2007 on March 22, 2020, 08:35:56 PM
Quote from: jimg on March 22, 2020, 04:04:04 PM
Yes, don't you?

Me too. QSort() uses this order, also in case-insensitive mode.

It becomes more complex with Utf8 text or Umlaute (äöü), of course:
1.1 motiviation
1.2 Sorting in Java
1. unbelievable point
1 Introduction
Adele
andere
Ändern
anders
ängstlich
zippy
zone


Apparently, Java can do that. It's probably slow, because you need a lookup table to do that (QSort has one, but it's almost undocumented).

What is your specific problem, i.e. why do you need characters above Ascii 127? Just curious.
this would be interesting to make custom sort for:
look it seems like random order,almost like sort Roman numbers need to be,I=1,C=100,M=1000,X=10,but ascii in complete other order,C,I,M,X
/*
1: 一
2: 二
3: 三
4: 四
5: 五
6: 六
7: 七
8: 八
9: 九
10: 十
11: 十一  十一
12: 十二 十二
20: 二十 二十
50: 五十 五十
100: 百 (Japanese: hyaku, Chinese: bai)
1000: 千 (Japanese: sen, Chinese: qian)
10,000:  万 (Japanese: man)
10,000:  萬 (Chinese: wan)
10^8: 億 (Japanese: oku)
10^8: 亿 亿 (Chinese: yi)
10^12: 兆 (Japanese: chou, Chinese: jhao)
*/
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

deeR44

Quote from: hutch-- on March 23, 2020, 10:27:17 AM
I should have explained, in QE its the tokeniser that strips out the high ascii, in order, load the text file, tokenise it then sort the tokenised array.
Ok, I give up. What's "QE"? Quality Engineering?

hutch--

Well, I could be tempted to boast about it being "Quality Engineering" but its the abbreviation of the editor I write that is installed in the MASM32 SDK. It has been called "Quick Editor" for over 20 years from its pre year 2000 version up to current.

deeR44

Quote... It has been called "Quick Editor" for over 20 years from its pre year 2000 version up to current.

Thank you, Hutch. I'm not familiar with many editors since I've been using one called "VEDIT" for something like forty years.