06-28-2005 02:11 PM
06-29-2005 12:41 AM
06-29-2005 09:03 AM
06-29-2005 01:35 PM
07-01-2005 08:40 AM
07-01-2005 10:59 AM
Sorry for sounding a bit confused, but how does your string sort differ from simply feeding the 1D array of strings to "sort array"?
(except for execution speed)
07-01-2005 11:17 AM
07-01-2005 11:40 AM - edited 07-01-2005 11:40 AM
Ah, I see. In this case I would probably do something like in the attached. Probably faster.
(The resuts between the two methods will differ if there are names that only differ in case, but I don't think that this can occur here)
Message Edited by altenbach on 07-01-2005 09:40 AM
07-01-2005 04:24 PM
Well, I thought about this a bit more and decided it would be cool of we could specify any sort precendence for characters!
(For the current purpose, the precedence would be AaBbCcDd ...Zz. But now we could even consider accented characters, etc. e.g. set the precedence to AÀÁÂÃÄÅaàáâãäåBbC...Zz) so these foreigners get proper respect. :). Are special characters allowed in usernames?)
The attached is a first quick draft (LabVIEW 7.0), there are probably better ways to do it. See if it works. No guarantees! 🙂
In a nutshell, it generates a pair of lookup tables (encode, decode), then remaps the strings according to the sort precence for sorting.
I am sure many improvements are possible.
07-04-2005 12:51 AM - edited 07-04-2005 12:51 AM
Message Edited by chilly charly on 07-04-2005 07:57 AM