-
Sam
I don't see why there would be really; there's no implicit ordering so it doesn't seem worth defining one explicitly just to satisfy more traits. I suspect any useful ordering would be extremely context dependent.
-
Link Mauve
pep., you have equality defined on JIDs, so that foo™@BAR and Footm@bar will compare as equal, that’s it.
-
flow
pep., you could normalize jids and then order by the bytes you get when you encode them in utf-8?
-
flow
but I never was in the situation where I needed an ordering
-
flow
what I needed, and jxmpp provides, are relations like "Jid.isChildOf(Jid)" and "Jid.isParentOf(Jid)"
-
Link Mauve
The only XEPs I know which define an ordering are XEP-0115 and XEP-0390, for normaisation reasons.
-
Link Mauve
But they treat every attribute as text, doesn’t matter if it’s a JID or a boolean.
-
Link Mauve
flow, for full → bare → domain relations?
-
flow
Link Mauve, exactly