Permalink
Browse files

Sort file list by name

  • Loading branch information...
1 parent ee2133d commit 758849147b02b0db43bba5db1603b8dc31e28560 Benjamin committed Aug 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 transmission-remote-cli
View
@@ -1958,7 +1958,7 @@ class Interface:
def create_filelist(self):
filelist = []
- files = self.torrent_details['files']
+ files = sorted(self.torrent_details['files'], cmp=lambda x,y: cmp(x['name'], y['name']))
current_folder = []
current_depth = 0
index = 0

0 comments on commit 7588491

Please sign in to comment.