Skip to content

Commit

Permalink
#include sorting is now case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
dictoon committed Sep 11, 2016
1 parent 82cb09f commit 00f1b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sortincludes.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def process_file(filepath):

if section_begin != -1 and line in ["\n", "\r\n"]:
if all(clause.startswith("#include") for clause in lines[section_begin:index]):
lines[section_begin:index] = sorted(lines[section_begin:index])
lines[section_begin:index] = sorted(lines[section_begin:index], key=lambda s: s.lower())
section_begin = -1

with open(filepath + ".processed", "wt") as f:
Expand Down

0 comments on commit 00f1b80

Please sign in to comment.