소스 검색

[changed] Make list sorting case insensitive.

TnS-hun 6 년 전
부모
커밋
25d57cb8f5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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