[comp.sys.handhelds] Wanted: HP48 Array Sort routine

rrd@hpfcso.FC.HP.COM (Ray Depew) (02/22/91)

I need a program that sorts a real array.  I was going to write my own, but
thought I'd ask for help on c.s.h first.

Suppose I have a m x n array, like

[
[ 1 549 .60 ]
[ 2 430 .89 ]
[ 3 600 .94 ]
[ ... ] ... ]

I want to be able to specify the primary sort column (XCOL would work), the
secondary sort column (YCOL would work), and whether each column should be
sorted in ascending or descending order.

Has anybody written anything like this?  If not, I'm off to punch keys for a
while...


Regards
Ray Depew
IC's by Bill and Dave   
rrd@hpfitst1.hp.com

rrd@hpfcso.FC.HP.COM (Ray Depew) (02/22/91)

About the array sort routine:

I'd like to keep this to "user language" -- you know, HP-approved commands.
But I'm not above downloading and using an mcode version...

Regards
Ray Depew
IC's by Bill and Dave   
rrd@hpfitst1.hp.com