{"uid":"cap_V1B1DyETZ7PWam_3PbMMk","slug":"delx-array-sort-num-9b52e7fa","name":"Delx Array Sort Num","description":"Sort a list numerically. Call when you order agent-held scores or prices. Returns sorted numbers and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/arr-sort-num","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","description":"Input field: items."}}},"responseSchema":{"type":"json","example":{"count":3,"items":[1,2,3],"schema":"delx/util-arr-sort-num/v1"}},"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_DVBulQyund2s81ELCGb72","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 a list of numbers in ascending order and returns the sorted array along with its count.","exampleAgentPrompt":"Can you sort these numbers for me: [42, 7, 100, 3, 55, 18]? I need them in numerical order.","exampleUseCases":[{"title":"Ranking leaderboard scores","prompt":"I have these player scores from the last round — 980, 450, 1200, 670, 340 — can you sort them numerically so I can display the leaderboard in order?"},{"title":"Ordering product prices","prompt":"Sort these product prices so I can show the cheapest options first: [29.99, 9.99, 149.00, 49.50, 19.99]."},{"title":"Prioritizing task weights","prompt":"I've got a list of task priority weights — [0.8, 0.2, 1.5, 0.6, 1.1] — can you sort them numerically so I can queue them in the right order?"}],"resultDescription":"Returns the input numbers sorted in ascending numerical order and a count of how many items were in the list.","failureModes":["Non-numeric values in the items array may cause an error or unexpected sorting behavior","Empty array input may return an empty result or error","Malformed JSON body returns a 400-level error","Missing items field in the request body returns a validation error"],"whenToPreferThis":"Use this endpoint when your agent holds a list of numbers that need to be sorted and you want a stateless, no-retention, local computation with a predictable $0.001 USDC cost. Prefer this over rolling your own sort logic when you need a reliable, consistent API-based sort without storing data externally. Best for scores, prices, weights, or any numeric array that needs ordering.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:51:31.281Z","isFirstParty":false}