Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hplabs!hpfcso!rrd From: rrd@hpfcso.FC.HP.COM (Ray Depew) Newsgroups: comp.sys.handhelds Subject: Wanted: HP48 Array Sort routine Message-ID: <7360077@hpfcso.FC.HP.COM> Date: 21 Feb 91 21:18:50 GMT Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 23 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