Fix patch stitching
As scans were ordered by lexicographic order, the merging of patches was done following this order which is wrong (
Ex: 10.1
must not come before 5.1
).
This PR fixes this by sorting scans explicitly by numeric order
Edited by Loic Huder