asyncio doc: sort methods
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst
index 9d18baf..f557df3 100644
--- a/Doc/library/asyncio-stream.rst
+++ b/Doc/library/asyncio-stream.rst
@@ -123,6 +123,11 @@
 
       Transport.
 
+   .. method:: can_write_eof()
+
+      Return :const:`True` if the transport supports :meth:`write_eof`,
+      :const:`False` if not. See :meth:`WriteTransport.can_write_eof`.
+
    .. method:: close()
 
       Close the transport: see :meth:`BaseTransport.close`.
@@ -158,11 +163,6 @@
       Write a list (or any iterable) of data bytes to the transport:
       see :meth:`WriteTransport.writelines`.
 
-   .. method:: can_write_eof()
-
-      Return :const:`True` if the transport supports :meth:`write_eof`,
-      :const:`False` if not. See :meth:`WriteTransport.can_write_eof`.
-
    .. method:: write_eof()
 
       Close the write end of the transport after flushing buffered data: