{"id":"json-array-sort-objects","version":"1.0.0","description":"Stably sort an array of objects by explicit string keys using UTF-16 lexicographic order.","supported_operations":["json array sort objects","sort json objects by keys","stable sort object array","order json objects lexicographically"],"unsupported_operations":["numeric sort","locale sort","nested paths","json pointer sort","fuzzy matching","read files","fetch urls"],"semantics":["items is an array of non-array objects; extra own properties are allowed and preserved.","keys is a unique non-empty list of own string property names used as the sort tuple, in listed precedence.","Every listed key must be an own property of every item and its value must be a string; numbers, null, and missing keys are rejected.","order is asc by default or desc; comparison uses ordinary UTF-16 code-unit < and >, not localeCompare.","Equal key tuples keep original array order (stable) in both directions.","Each output item is a new null-prototype object whose own keys match the input item in Object.keys order."],"limits":{"max_items":5000,"max_keys":16,"max_depth":16,"max_output_bytes":1048576},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["items","keys"],"properties":{"items":{"type":"array","maxItems":5000,"items":{"type":"object"}},"keys":{"type":"array","minItems":1,"maxItems":16,"uniqueItems":true,"items":{"type":"string","minLength":1}},"order":{"type":"string","enum":["asc","desc"],"default":"asc"}}},"output_schema":{"type":"object","additionalProperties":false,"required":["items"],"properties":{"items":{"type":"array","maxItems":5000,"items":{"type":"object"}}}},"examples":[{"input":{"items":[{"team":"b","name":"Ada"},{"team":"a","name":"Zoe"},{"team":"a","name":"Ada"}],"keys":["team","name"]},"output":{"items":[{"team":"a","name":"Ada"},{"team":"a","name":"Zoe"},{"team":"b","name":"Ada"}]}}],"execute_url":"/v1/tools/json-array-sort-objects/versions/1.0.0/execute"}