mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
fix sorting bug in get_pkg_names for consistency with pip freeze
This commit is contained in:
parent
638e2f1046
commit
712879a7be
@ -267,7 +267,7 @@ def get_pkg_names(pkgs):
|
||||
# simply use the package name.
|
||||
result.add(data.get(pkg, pkg))
|
||||
# Return a sorted list for backward compatibility.
|
||||
return sorted(result)
|
||||
return sorted(result, key=lambda s: s.lower())
|
||||
|
||||
|
||||
def get_name_without_alias(name):
|
||||
|
Loading…
x
Reference in New Issue
Block a user