added sort -T flag to do the sort in our working directory.