fix: sort patch files before apply (#1541)

Co-authored-by: okozachenko1203 <okozachenko1203@users.noreply.github.com>
diff --git a/build/sync-charts.py b/build/sync-charts.py
index 577c8fc..a2be651 100644
--- a/build/sync-charts.py
+++ b/build/sync-charts.py
@@ -248,7 +248,10 @@
 
         patches_path = charts_path / "patches" / chart.name
         if await patches_path.exists():
-            async for patch_path in patches_path.glob("*.patch"):
+            patch_paths = sorted(
+                [patch_path async for patch_path in patches_path.glob("*.patch")]
+            )
+            for patch_path in patch_paths:
                 async with patch_path.open(mode="rb") as patch_file:
                     patch_data = await patch_file.read()
                     await patch(input=patch_data, path=chart_path)