{"uid":"cap_asl91o4b5mCe58E6o4L9B","slug":"csv-sort-rows-176c0763","name":"CSV Sort Rows","description":"CSV Sort Rows: CSV Sort Rows sorts bounded CSV rows by one column from bounded caller-supplied values without an external provider. Call CSV Sort Rows before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for CSV Sort Rows as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only ex…","url":"https://api.delx.ai/api/v1/x402/csv-sort-rows","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8192,"description":"Text supplied to CSV Sort Rows; used only for this bounded calculation and processed in memory without retention."},"column":{"type":"string","maxLength":8192,"description":"Column supplied to CSV Sort Rows; used only for this bounded calculation and processed in memory without retention."},"descending":{"type":"boolean","description":"Descending supplied to CSV Sort Rows; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"csv":"id,name\n1,Ada\n2,Lin","row_count":2},"schema":"delx/util-csv-sort-rows/v1","status":"pass","evidence":{"retained":false,"input_sha256":"cb69489ce0dceef87b94db612016a08b6e5cea76db3556e85ba7b78b5827e73e","external_calls":0},"operation":"data_batch:csv_sort_rows"}},"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_be9K-T5obaqtKA6fVZdhS","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 CSV rows by a specified column, ascending or descending, and returns the reordered CSV with transformation metadata.","exampleAgentPrompt":"Sort this CSV by the 'revenue' column in descending order and give me the reordered rows back.","exampleUseCases":[{"title":"Rank sales records before reporting","prompt":"I have a CSV of sales transactions — can you sort the rows by the 'amount' column from highest to lowest so I can hand it off to the report generator?"},{"title":"Alphabetize contact list export","prompt":"Sort this CSV of contacts alphabetically by the 'last_name' column in ascending order so the output is ready for the mail merge tool."},{"title":"Order log entries by timestamp","prompt":"I've got a batch of server log entries in CSV format — please sort them by the 'timestamp' column ascending so they're in chronological order before I analyze them."}],"resultDescription":"Returns a versioned deterministic JSON object containing the sorted CSV text, row count, normalized column values, and a result contract version — all computed statelessly in memory with no data retained.","failureModes":["Column name not found in CSV header — returns validation error with available column names","CSV is malformed or exceeds 8192-character limit — returns error with count and position details","Descending flag is not a boolean — returns schema validation error","Empty CSV input — returns error indicating no rows to sort"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, pay-per-call CSV row sorter with a versioned result contract and no external dependencies — especially before handing structured tabular data to a downstream tool that requires a specific row order. Prefer it over general-purpose code execution when you want deterministic, auditable transformations without spinning up a runtime.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:05:23.555Z","isFirstParty":false}