scripts: sort-makefile-lines.py
commitb0528456a606faf996ae8046512d623a6d22d0cc
authorCarlos O'Donell <carlos@redhat.com>
Wed, 17 May 2023 13:16:41 +0000 (17 09:16 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Thu, 18 May 2023 16:33:24 +0000 (18 12:33 -0400)
treee95a8ae210bde6008a6d39db270e7209376821e8
parentc4098bc256a892aee214ec7c722a4a45f661a55c
scripts: sort-makefile-lines.py

We must return < 0, 0, or > 0 as the result of the comparison function
for cmp_to_key() to work correctly across all comparisons.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
scripts/sort-makefile-lines.py