fetchpatch: Sort/filter patch by filenames.

This not only sorts the patch but also filters out duplicate files, currently all uses of fetchpatch lead to the same hashes so they're already sorted.