Xref: utzoo comp.lang.rexx:404 bit.listserv.rexxlist:462 Path: utzoo!utgpu!news-server.csri.toronto.edu!qucdn!boydj Organization: Queen's University at Kingston Date: Monday, 21 Jan 1991 09:41:31 EST From: Jeff Boyd Message-ID: <91021.094131BOYDJ@QUCDN.QueensU.CA> Newsgroups: comp.lang.rexx,bit.listserv.rexxlist Subject: Re: I need and exec to do the following: Distribution: usa A possible algorithm: 1) Pass through the file once; store each title found in an array, and include the line number where it was found. 2) Call your favourite sort routine to sort the titles and re-order array from 1) accordingly. 3) Write the file of sorted titles. 4) Pass through the original file again, this time locating the files and writing them according to the new order from 2). EXECIO can use the line numbers to do direct reads.