system ("sort -n -t , -k 1,3 input_file.txt > ss.txt"); rename (ss.txt, input_file.txt);