Numeric sort with negative numbers

Richard Gaskin ambassador at fourthworld.com
Sat Jul 27 17:03:01 EDT 2002


Shari wrote:

> Far as I can tell, sorting a column of numbers numerically doesn't
> work properly if some of the numbers are negative.  It puts -500
> higher than -200.
> 
> Do I need to write my own sort command to remedy this?

Hmmm...

I just ran this test:

on mouseUp
  get fld 1
  sort it numeric descending
  put it
end mouseUp

In field 1 I had this:

500
100
23
-10
-100
30
-45
-50
15

...and it sorted to this:

500
100
30
23
15
-10
-45
-50
-100

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 2.0: Publish any Database on Any Site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the metacard mailing list