SDL: dynapi: order headers for reproducible behavior

From ec2ef5f9b580add35195a1d12eebf6094ac36b75 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Mon, 2 Dec 2024 18:25:48 +0100
Subject: [PATCH] dynapi: order headers for reproducible behavior

---
 src/dynapi/gendynapi.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/dynapi/gendynapi.py b/src/dynapi/gendynapi.py
index dae72d241efb7..a12e68f9f874d 100755
--- a/src/dynapi/gendynapi.py
+++ b/src/dynapi/gendynapi.py
@@ -444,6 +444,9 @@ def get_header_list() -> list[Path]:
         else:
             logger.debug("Skip %s", f)
 
+    # Order headers for reproducible behavior
+    ret.sort()
+
     return ret
 
 # Write the new API in files: _procs.h _overrivides.h and .sym