in reply to Storing unordered data from file in memory

Sort by fixed-width ASCII addresses? S-records are fixed-width also, with characters /[0-9A-F]/, except for the 'S'?! What more could we ask for? :)

Here it is using Unix:
sort -k 1.5 s3.txt | grep S3 > s3_sorted_by_addr.txt