7.8 straight ASCII sorting?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

7.8 straight ASCII sorting?

Carl Gundel-2
Can VisualWorks compare strings using a straight ASCII sort?
Similarly I need to do straight ASCII comparisions using <, >, etc.
It seems like all the collation policies like to sort like letters
together instead of using their ASCII values.

Thanks,

Carl Gundel
http://www.libertybasic.com
http://www.runbasic.com
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: 7.8 straight ASCII sorting?

Martial Tarizzo
See StringCollationPolicy comment to control the default algorithm used
for sorting strings.

MT

Le jeudi 09 août 2012 à 22:42 -0400, Carl Gundel a écrit :

> Can VisualWorks compare strings using a straight ASCII sort?
> Similarly I need to do straight ASCII comparisions using <, >, etc.
> It seems like all the collation policies like to sort like letters
> together instead of using their ASCII values.
>
> Thanks,
>
> Carl Gundel
> http://www.libertybasic.com
> http://www.runbasic.com
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: 7.8 straight ASCII sorting?

Carl Gundel-2
Yeah, I looked at that and didn't find what I need.  Maybe I missed it.  I'll have another look.

Thanks,

-Carl Gundel
Liberty BASIC for Windows -http://www.libertybasic.com
Run BASIC, easy web programming -http://www.runbasic.com


On Friday, August 10, 2012, Martial wrote:
See StringCollationPolicy comment to control the default algorithm used
for sorting strings.

MT

Le jeudi 09 août 2012 à 22:42 -0400, Carl Gundel a écrit :
> Can VisualWorks compare strings using a straight ASCII sort?
> Similarly I need to do straight ASCII comparisions using <, >, etc.
> It seems like all the collation policies like to sort like letters
> together instead of using their ASCII values.
>
> Thanks,
>
> Carl Gundel
> http://www.libertybasic.com
> http://www.runbasic.com
> _______________________________________________
> vwnc mailing list
> <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;vwnc@cs.uiuc.edu&#39;)">vwnc@...
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;vwnc@cs.uiuc.edu&#39;)">vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: 7.8 straight ASCII sorting?

Holger Kleinsorgen
In reply to this post by Carl Gundel-2
ASCII contains 128 characters, so a collation algorithm based on the ASCII code points is not be able to properly compare non-ASCII chararacters.

Here's a quick&dirty hack based on #basicGermanCollate:to:


https://dl.dropbox.com/u/21555916/smalltalk/StringCollationPolicy-asciiCollateto.st