awk '{OFS="";print(substr($0,1,6),substr($0,74,18),substr($0,15,3),substr($0,18,8))}' inputfile| sort -k1.1,1.24 > outputfile