diff --git a/xep-0115.xml b/xep-0115.xml
index be58129d..5477a8ff 100644
--- a/xep-0115.xml
+++ b/xep-0115.xml
@@ -275,10 +275,10 @@
For each identity, append the 'category/type/lang/name' to S, followed by the '<' character.
Sort the supported service discovery features. A registry of service discovery features is located at &DISCOFEATURES;.
For each feature, append the feature to S, followed by the '<' character.
- If the service discovery information response includes XEP-0128 data forms, sort the forms by the FORM_TYPE field.
+ If the service discovery information response includes XEP-0128 data forms, sort the forms by the FORM_TYPE (i.e., by the XML character data of the <value/> element).
For each extended service discovery information form:
- - Append the value of the FORM_TYPE field, followed by the '<' character.
+ - Append the XML character data of the FORM_TYPE field's <value/> element, followed by the '<' character.
- Sort the fields by the value of the "var" attribute.
- For each field:
@@ -353,10 +353,10 @@
- Sort the extended service discovery forms by FORM_TYPE (there is only one: "urn:xmpp:dataforms:softwareinfo").
- S = 'client/pc/el/Ψ 0.9.1<client/pc/en/Psi 0.9.1<http://jabber.org/protocol/caps<http://jabber.org/protocol/disco#info
<http://jabber.org/protocol/disco#items<http://jabber.org/protocol/muc<urn:xmpp:dataforms:softwareinfo<'
- - Sort the fields by var and append the value(s): "ip_version<ipv4<ipv6", "os<Mac", "os_version<OS X 10.5.1", "software<Psi", "software_version<0.11".
+ - Sort the fields by var and append the value(s): "ip_version<ipv4<ipv6", "os<Mac", "os_version<10.5.1", "software<Psi", "software_version<0.11".
- S = 'client/pc/el/Ψ 0.9.1<client/pc/en/Psi 0.9.1<http://jabber.org/protocol/caps
<http://jabber.org/protocol/disco#info<http://jabber.org/protocol/disco#items<http://jabber.org/protocol/muc
-
<urn:xmpp:dataforms:softwareinfo<ip_version<ipv4<ipv6<os<Mac<os_version<OS X 10.5.1<software<Psi<software_version<0.11<'
+
<urn:xmpp:dataforms:softwareinfo<ip_version<ipv4<ipv6<os<Mac<os_version<10.5.1<software<Psi<software_version<0.11<'
- ver = 8lu+88MRxmKM7yO3MEzY7YmTsWs=