sorting strings and numerals from reading the file.