{"uid":"cap_2o0rlSqfXGDHaNiuUwcHJ","slug":"minia2a-x402-quick-sort-48a9b5c6","name":"minia2a x402 Quick Sort","description":"Quick Sort","url":"https://minia2a.uk/x402/quickSort?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","properties":{"type":{"type":"string"},"method":{"type":"string"},"bodyType":{"type":"string"},"queryParams":{"type":"object"}}},"output":{"type":"object","properties":{"type":{"type":"string"}}}}},"responseSchema":{"type":"json","example":{"ok":true},"answerAt":"result"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_riA4AhpbmEJK_fPcB-PTJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 elements using the quicksort algorithm, accessible as a paid API endpoint via the x402 micropayment protocol.","exampleAgentPrompt":"Sort this list of numbers for me using quicksort: [34, 7, 23, 1, 56, 12] — I need the result back in order.","exampleUseCases":[{"title":"Sort leaderboard scores for a game","prompt":"I have a list of player scores [4500, 1200, 9800, 340, 7700] — can you sort them from lowest to highest using quicksort so I can display the leaderboard?"},{"title":"Order product prices for display","prompt":"Sort these product prices for me: [29.99, 9.49, 149.00, 59.95, 4.99] — I need them in ascending order for a price comparison table."},{"title":"Alphabetize a list of names","prompt":"Take this list of names [\"Zara\", \"Alice\", \"Mike\", \"Bob\", \"Yara\"] and sort them alphabetically using quicksort."}],"resultDescription":"Returns a sorted version of the input array in ascending order, computed using the quicksort algorithm. The response includes the ordered output data.","failureModes":["Missing required 'input' parameter returns a validation error","Malformed query parameters result in a 400 bad request","Payment not provided or invalid causes a 402 Payment Required response before processing","Empty array input may return an empty result or error","Non-comparable mixed types in the array may cause sorting failure"],"whenToPreferThis":"Choose this endpoint when you need a quick, on-demand quicksort computation without implementing the algorithm yourself, and you are already operating within the x402 micropayment ecosystem. It is suitable for small to medium data sets where a per-call cost of $0.01 USDC is acceptable and you want a simple REST-based sorting service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:39:56.693Z","isFirstParty":false,"canonicalSlug":"minia2a-x402-quick-sort-48a9b5c6"}