[libvirt] [PATCHv2 14/25] apibuild: Avoid double sorting of ids