Sort the text edits later.
Take the filename into account when sorting.