I am maintaining an indexed file using an antiquated compiler, etc. and terse doc, on a Unix system. The indexed file has a primary record key and a couple of alternate record keys whith dups allowed. The alt keys DO NOT contain the primary key. There are "parent" records and "child" records, guaranteed by the appropriate values within the primary key structure My problem is that a FEW records are not in the sequence I expected, when STARTing the file on an alt key and using READ NEXT to go sequentially thru the file based on the alt key (some of the children preceded the parent, even though the parent was originally written first followed by the children). So I tried a loop using primary key sequence and rewriting each record, etc. I can't seem to force/get the few records realigned in the alt key seq I want (parent followed by children), although 90% are in the seq I want. The file is heavily used with many adds and updates. 1) What ARE the rules regarding the alt key sequence of records in this type of situation? 2) And are they standard rules or compiler vendor dependent? 3) Do the rules vary? 4) And do you have any suggestions to solve my problem, other than restructuring the file so that the alt key contains the pri key? Thanks!