Sorting diffs by natural ordering of key paths.