Adding sorting of file.