Sorting the documents in the open dialogue