added a sort in the files