added ordering to xmpp