Sort slots numerically instead of lexicographically

This commit is contained in:
2026-03-07 03:12:03 +00:00
parent 8a8fbfbcf6
commit fdafb15b23

View File

@@ -103,6 +103,7 @@ def list_slots(enclosure_id: str) -> list[dict]:
"device": device, "device": device,
}) })
slots.sort(key=lambda s: s["slot"])
return slots return slots