Skip to content

Commit

Permalink
Use case-insensitive sort
Browse files Browse the repository at this point in the history
  • Loading branch information
benbarth authored Oct 20, 2023
1 parent 5a79c3e commit cefed69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_participants() -> List[Dict]:
with open(work_dir + "hacktoberfest.yml", "r") as stream:
ret.append({"sponsor": yaml.safe_load(stream)})

for file in sorted(glob.glob(work_dir + "**" + os.path.sep + "*.yml")):
for file in sorted(glob.glob(work_dir + "**" + os.path.sep + "*.yml"), key=str.casefold):
with open(file, "r") as stream:
try:
data = yaml.safe_load(stream)
Expand Down

0 comments on commit cefed69

Please sign in to comment.