fix sorting bug in get_pkg_names for consistency with pip freeze

This commit is contained in:
Nick Gustafson 2018-02-08 10:11:16 -08:00
parent 638e2f1046
commit 712879a7be

View File

@ -267,7 +267,7 @@ def get_pkg_names(pkgs):
# simply use the package name. # simply use the package name.
result.add(data.get(pkg, pkg)) result.add(data.get(pkg, pkg))
# Return a sorted list for backward compatibility. # Return a sorted list for backward compatibility.
return sorted(result) return sorted(result, key=lambda s: s.lower())
def get_name_without_alias(name): def get_name_without_alias(name):