Commit b6d9ca6f authored by Serge S. Koval's avatar Serge S. Koval

Sort by filename in file admin

parent 911c6bbb
...@@ -374,8 +374,11 @@ class FileAdmin(BaseView, ActionsMixin): ...@@ -374,8 +374,11 @@ class FileAdmin(BaseView, ActionsMixin):
items.append((f, op.join(path, f), op.isdir(fp), op.getsize(fp))) items.append((f, op.join(path, f), op.isdir(fp), op.getsize(fp)))
# Sort by name
items.sort(key=itemgetter(0))
# Sort by type # Sort by type
items.sort(key=itemgetter(2, 1), reverse=True) items.sort(key=itemgetter(2), reverse=True)
# Generate breadcrumbs # Generate breadcrumbs
accumulator = [] accumulator = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment