modifyrepo_c: Sort repomd records before dump.