[PATCH v2 02/12] util: hash: Rewrite sorting of elements in virHashGetItems