{"uid":"cap_tyRmivSxPHGgOTWbAMKbB","slug":"delx-commerce-json-array-sort-by-key-2e752211","name":"Delx Commerce — JSON Array Sort By Key","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/json-array-sort-by-key?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","maxLength":8192,"description":"Key supplied to JSON Array Sort By Key; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Items supplied to JSON Array Sort By Key; used only for this bounded calculation and processed in memory without retention."},"descending":{"type":"boolean","description":"Descending supplied to JSON Array Sort By Key; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"key":"id","items":[{"id":1},{"id":2}]},"schema":"delx/util-json-array-sort-by-key/v1","status":"pass","evidence":{"retained":false,"input_sha256":"bf681df4606cba8b0ec23d87bda8e34c27fbf446a8b5b0d57f064b3afa47afd5","external_calls":0},"operation":"data_batch:json_array_sort_by_key"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__W8Sx8csl0uzFy_dF8C4L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sorts an array of JSON objects by a specified key, with optional descending order, returning verifiable sorted results with no data retention.","exampleAgentPrompt":"Sort this array of product objects by the 'price' field in descending order: [{\"id\":1,\"price\":29.99},{\"id\":2,\"price\":9.99},{\"id\":3,\"price\":49.99}]","exampleUseCases":[{"title":"Sort product catalog by price","prompt":"I have a list of products as JSON objects and I need them sorted by the 'price' field from lowest to highest — can you do that?"},{"title":"Order user records alphabetically","prompt":"Sort these user records by the 'last_name' field in ascending order so I can display them in alphabetical order in my app."},{"title":"Rank events by timestamp descending","prompt":"I've got a batch of event log objects and I need them sorted by the 'timestamp' field, newest first (descending), so I can show the most recent activity at the top."}],"resultDescription":"Returns a JSON object containing the sorted array under 'result.items', the key used for sorting under 'result.key', a status field ('pass'), and an evidence block with a SHA-256 hash of the input, a 'retained: false' flag confirming no data was stored, and an external_calls count of 0 confirming no third-party calls were made.","failureModes":["Invalid or missing 'key' field — returns error if key is not a string or exceeds 8192 characters","Array exceeds 256 items — request rejected due to maxItems constraint","Object in array has more than 128 properties — rejected due to maxProperties constraint","Key not present in array objects — may return unsorted or partially sorted results","Malformed JSON input — request fails with parsing error","Payment not provided or insufficient USDC — HTTP 402 returned before processing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use, verifiable sort of a JSON array of objects by a named key without setting up any infrastructure or signing up for a service. It is ideal for AI agents operating autonomously that need deterministic, in-memory data transformations with cryptographic proof of non-retention. Prefer it over building sort logic inline when auditability and verifiable execution matter, or when calling from an agent that already handles x402 micropayments in USDC on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:57.910Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-array-sort-by-key-2e752211"}