doc: sort punycode alphabetically
authorTristian Flanagan <tflanagan@datacollaborative.com>
Wed, 4 Nov 2015 17:25:20 +0000 (12:25 -0500)
committerJames M Snell <jasnell@gmail.com>
Wed, 23 Dec 2015 16:38:33 +0000 (08:38 -0800)
Reorders, with no contextual changes, the punycode documentation
alphabetically.

PR-URL: https://github.com/nodejs/node/pull/3662
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
doc/api/punycode.markdown

index fe29bdd..f86b32b 100644 (file)
@@ -22,16 +22,6 @@ Converts a string of Unicode symbols to a Punycode string of ASCII-only symbols.
     punycode.encode('mañana'); // 'maana-pta'
     punycode.encode('☃-⌘'); // '--dqo34k'
 
-## punycode.toUnicode(domain)
-
-Converts a Punycode string representing a domain name to Unicode. Only the
-Punycoded parts of the domain name will be converted, i.e. it doesn't matter if
-you call it on a string that has already been converted to Unicode.
-
-    // decode domain names
-    punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com'
-    punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com'
-
 ## punycode.toASCII(domain)
 
 Converts a Unicode string representing a domain name to Punycode. Only the
@@ -42,6 +32,16 @@ you call it with a domain that's already in ASCII.
     punycode.toASCII('mañana.com'); // 'xn--maana-pta.com'
     punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com'
 
+## punycode.toUnicode(domain)
+
+Converts a Punycode string representing a domain name to Unicode. Only the
+Punycoded parts of the domain name will be converted, i.e. it doesn't matter if
+you call it on a string that has already been converted to Unicode.
+
+    // decode domain names
+    punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com'
+    punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com'
+
 ## punycode.ucs2
 
 ### punycode.ucs2.decode(string)