build_options.py: sort by category then label

This commit is contained in:
Peter Barker 2022-10-01 10:11:41 +10:00 committed by Andrew Tridgell
parent d4a7ff1ccd
commit 6b3575f9b4

View File

@ -226,4 +226,4 @@ BUILD_OPTIONS = [
Feature('Payload', 'Camera', 'AP_CAMERA_ENABLED', 'Enable Camera Trigger support', 0, None),
]
BUILD_OPTIONS.sort(key=lambda x: x.category)
BUILD_OPTIONS.sort(key=lambda x: (x.category + x.label))