I'm not even sure if I understand your problem. Looks as if you already
solved most of it.
[EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> Given the following text file:
>
> My first idea is to rebuild the array with a 'sortkey' pre-pended to each
> record, and then sorting this temp-array by th
: I need to sort all records by: 1) dept, name, record type.
: ...
: The real problem I have is with the "name" field being in one record only.
: The 'xx' values show that the name cannot be simply copied to the remaining
: records.
Try a two-pass solution: first create a hash that maps IDs to n
other stuff
56701xx Rother stuff
34502smith Dstuff
34502xx Eother stuff
34502xx Rmore stuff
-Original Message-
From: Steven.Spears@
dana.com [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 11:24
To: [EMAIL PROTECTED]
Subject: tough sort question
Given the following te
Given the following text file:
12301spears Dstuff
12301xx Rother stuff
12301xx Emore stuff
34502smith Dstuff
34502xx Eother stuff
34502xx Rmore stuff
56701jones Dstuff
56701xx Rother stuff
56701xx Emore stuff
and the following info:
chars (1-3) ID #
chars (4-5)