diff --git a/web/pgadmin/misc/file_manager/__init__.py b/web/pgadmin/misc/file_manager/__init__.py index e262208..c52a5ba 100644 --- a/web/pgadmin/misc/file_manager/__init__.py +++ b/web/pgadmin/misc/file_manager/__init__.py @@ -441,7 +441,12 @@ class Filemanager(object): orig_path = unquote(orig_path) try: - for f in sorted(os.listdir(orig_path)): + def custom_sort(x, y): + return y.lower() > x.lower() + + mylist = [x for x in sorted(os.listdir(orig_path), + cmp=custom_sort)] + for f in mylist: protected = 0 system_path = os.path.join(os.path.join(orig_path, f)) diff --git a/web/pgadmin/misc/file_manager/templates/file_manager/js/utility.js b/web/pgadmin/misc/file_manager/templates/file_manager/js/utility.js index 8d891fd..3acd2ff 100755 --- a/web/pgadmin/misc/file_manager/templates/file_manager/js/utility.js +++ b/web/pgadmin/misc/file_manager/templates/file_manager/js/utility.js @@ -236,7 +236,7 @@ var setUploader = function(path) { // template for creating new folder folder_div = - "
  • " + + "
  • " + "
    " + "

    New_Folder

    " + "
  • "; @@ -686,7 +686,9 @@ var getFolderInfo = function(path, file_type) { if (!_.isEmpty(data)) { if ($('.fileinfo').data('view') == 'grid') { result += '