Skip to content

Commit 3c4a08c

Browse files
committed
Fix
1 parent d2fc4e9 commit 3c4a08c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clang-tidy/tool/check_alphabetical_order.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import re
3131
import sys
3232
from typing import Dict, List, Optional, Sequence, Tuple, Union, overload
33+
from operator import itemgetter
3334

3435
# Matches a :doc:`label <path>` or :doc:`label` reference anywhere in text and
3536
# captures the label. Used to sort bullet items alphabetically in ReleaseNotes
@@ -185,7 +186,7 @@ def sort_blocks(blocks: List[Tuple[str, List[str]]]) -> List[List[str]]:
185186
186187
Duplicates are preserved; merging is left to authors to handle manually.
187188
"""
188-
return list(map(itemgetter(1), sorted(blocks, key=itemgetter(0)))
189+
return list(map(itemgetter(1), sorted(blocks, key=itemgetter(0))))
189190

190191

191192
def find_duplicate_entries(

0 commit comments

Comments
 (0)