Add .pyo as an extension, fixes bug #416462. Also restore alphabetic order.
diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py
index c4d1860..8f5c076 100644
--- a/Lib/mimetypes.py
+++ b/Lib/mimetypes.py
@@ -197,9 +197,10 @@
     '.pnm': 'image/x-portable-anymap',
     '.png': 'image/png',
     '.ppm': 'image/x-portable-pixmap',
+    '.ps': 'application/postscript',
     '.py': 'text/x-python',
     '.pyc': 'application/x-python-code',
-    '.ps': 'application/postscript',
+    '.pyo': 'application/x-python-code',
     '.qt': 'video/quicktime',
     '.ras': 'image/x-cmu-raster',
     '.rgb': 'image/x-rgb',