Refactor: libcrmcommon: Sort XML attributes more efficiently
Without going to and from nvpairs.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>