{"uid":"cap_c0vC1MiOanHxmGSkE94GF","slug":"energy-readings-numeric-row-ordering-53779b03","name":"Energy Readings Numeric Row Ordering","description":"Energy readings - Numeric row ordering: Numeric row ordering for Energy readings. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded numeric row ordering deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-energy-readings-sort?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","meter","date","kwh","cost"],"properties":{"kwh":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"cost":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"meter":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1}},"additionalProperties":false},"default":[{"kwh":10,"cost":1,"date":"2026-10-01","meter":"group-a","row_id":"row-1"},{"kwh":20,"cost":2,"date":"2026-10-02","meter":"group-b","row_id":"row-2"},{"kwh":15,"cost":3,"date":"2026-10-03","meter":"group-a","row_id":"row-3"},{"kwh":30,"cost":4,"date":"2026-10-04","meter":"group-b","row_id":"row-4"}],"maxItems":200,"minItems":1},"field":{"enum":["kwh","cost"],"type":"string","default":"kwh"}}},"responseSchema":null,"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_AKTmRsgKUpn-R8XtRr819","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 up to 200 energy reading records by a numeric field (kWh or cost) and returns them in ordered sequence.","exampleAgentPrompt":"Sort these energy meter readings by kWh — I have 4 rows: row-1 for meter group-a on 2026-10-01 with 10 kWh costing $1, row-2 for group-b on 2026-10-02 with 20 kWh costing $2, row-3 for group-a on 2026-10-03 with 15 kWh costing $3, and row-4 for group-b on 2026-10-04 with 30 kWh costing $4.","exampleUseCases":[{"title":"Rank meters by daily consumption","prompt":"I have a list of 50 daily energy readings across different meters — can you sort them by kWh so I can see which meters used the most and least power?"},{"title":"Identify highest-cost energy periods","prompt":"Sort these 80 energy records by cost so I can quickly identify the most expensive billing periods across our facility meters."},{"title":"Order readings for charting","prompt":"I need my 120 energy meter rows arranged in ascending order by kWh before I feed them into a chart — can you sort them numerically by kilowatt-hours?"}],"resultDescription":"Returns the submitted energy reading rows reordered numerically by the specified field (kwh or cost). Each row retains its original fields (row_id, meter, date, kwh, cost) but the array is now sorted in numeric order, enabling ranked analysis or visualization without any external enrichment.","failureModes":["Missing required fields (row_id, meter, date, kwh, cost) on any row causes validation error","Date field not matching YYYY-MM-DD pattern causes rejection","More than 200 rows submitted exceeds maxItems limit","Invalid field enum value (not 'kwh' or 'cost') causes error","Empty rows array (minItems: 1 not met) returns error","Payment not included or insufficient USDC causes 402 response"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.01 USDC) local numeric sort of energy meter records (up to 200 rows) by kWh or cost with no external API calls, forecasting, or enrichment. Ideal for pre-processing energy data before visualization or analysis pipelines where simple ordering by a numeric field is the only transformation needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:14:02.084Z","isFirstParty":false,"canonicalSlug":"energy-readings-numeric-row-ordering-53779b03"}