in reply to Storing unordered data from file in memory
sort -k 1.5 s3.txt | grep S3 > s3_sorted_by_addr.txt [download]