Don't attempt locale-aware sorting for now.

On Python 2, locale.strxfrm() can't handle unicode.
Thomas Kluyver 12 years ago
parent 4fe9f8d057
commit c75d4e9962

@ -18,7 +18,6 @@ Authors:
#-----------------------------------------------------------------------------
import io
import locale
import os
import glob
import shutil
@ -33,8 +32,8 @@ from IPython.utils import tz
from IPython.html.utils import is_hidden, to_os_path
def sort_key(item):
"""Case-insensitive, locale aware sorting."""
return locale.strxfrm(item['name'].lower())
"""Case-insensitive sorting."""
return item['name'].lower()
#-----------------------------------------------------------------------------
# Classes

Loading…
Cancel
Save