Browse Source

[changed] Make list sorting case insensitive.

TnS-hun 6 năm trước cách đây
mục cha
commit
25d57cb8f5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      kobo-book-downloader/Commands.py

+ 1 - 1
kobo-book-downloader/Commands.py

@@ -190,7 +190,7 @@ Examples:
 				Commands.__IsBookArchived( newEntitlement ) ]
 			rows.append( book )
 
-		rows = sorted( rows, key = lambda columns: columns[ 1 ] )
+		rows = sorted( rows, key = lambda columns: columns[ 1 ].lower() )
 		for columns in rows:
 			revisionId = colorama.Style.DIM + columns[ 0 ] + colorama.Style.RESET_ALL
 			title = colorama.Style.BRIGHT + columns[ 1 ] + colorama.Style.RESET_ALL