# Sort each entry in the top-level dictionary .[] |= sort_by( # Put all strings before objects type == "object", if type == "string" then # Sort string overrides alphabetically . else # Sort entries with an `until` field above entries with a `from` field .from, .until, # Sort build systems with the same `from` and `until` values .buildSystem end )