Disable this sort by default.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 14 Jul 2010 06:46:47 +0000 (00:46 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 14 Jul 2010 06:46:47 +0000 (00:46 -0600)
Admins should really sort by hand if this isn't an acceptable sort in
their language.  Otherwise we are wasting a bunch of CPU cycles on every
page for no good reason (sorting is not a trivial task).

horde/config/nls.php

index 0d12f95..96373e7 100644 (file)
@@ -211,8 +211,9 @@ $horde_nls_config = array(
     )
 );
 
-/* Sort encodings. */
-asort($horde_nls_config['encodings']);
+/* Sort encodings. Disabled by default - encoding list is already sorted by
+ * default in English. */
+//asort($horde_nls_config['encodings']);
 
 /* BSD charsets. */
 if (strpos(PHP_OS, 'BSD') !== false) {