Explorar el Código

[changed] Make list sorting case insensitive.

TnS-hun hace 6 años
padre
commit
25d57cb8f5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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