in reply to how to sort string in perl

% sort onefile > anotherfile
Learn to search: sort+file