{"uid":"cap_H5EP7enKtlrnoeb5P9XFe","slug":"membership-activity-numeric-row-ordering-743da586","name":"Membership Activity Numeric Row Ordering","description":"Membership activity - Numeric row ordering: Numeric row ordering for Membership activity. 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-membership-sort?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","tier","date","members","renewals"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"tier":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"members":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"renewals":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","tier":"group-a","row_id":"row-1","members":10,"renewals":1},{"date":"2026-10-02","tier":"group-b","row_id":"row-2","members":20,"renewals":2},{"date":"2026-10-03","tier":"group-a","row_id":"row-3","members":15,"renewals":3},{"date":"2026-10-04","tier":"group-b","row_id":"row-4","members":30,"renewals":4}],"maxItems":200,"minItems":1},"field":{"enum":["members","renewals"],"type":"string","default":"members"}}},"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_dqg_wUOhP2Y8OzBd1Y_y7","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 membership activity records by a chosen numeric field (members or renewals) and returns them in ordered sequence.","exampleAgentPrompt":"Sort these 4 membership activity rows by member count: row-1 on 2026-10-01 for group-a has 10 members and 1 renewal, row-2 on 2026-10-02 for group-b has 20 members and 2 renewals, row-3 on 2026-10-03 for group-a has 15 members and 3 renewals, row-4 on 2026-10-04 for group-b has 30 members and 4 renewals — sort by the members field.","exampleUseCases":[{"title":"Rank membership tiers by active members","prompt":"I have a list of membership tiers with daily member counts — can you sort all the rows by the members field so I can see which tiers and dates have the highest membership? Here are the rows: tier-gold on 2026-11-01 has 500 members and 50 renewals, tier-silver on 2026-11-01 has 300 members and 30 renewals, tier-bronze on 2026-11-01 has 150 members and 10 renewals."},{"title":"Order renewal performance by date","prompt":"Sort my monthly membership activity records by renewals so I can identify which periods had the strongest renewal performance. I have 6 rows: Jan has 120 renewals, Feb has 95 renewals, Mar has 210 renewals, Apr has 180 renewals, May has 75 renewals, Jun has 250 renewals — all under tier 'annual', sort by renewals."},{"title":"Prioritize low-membership segments","prompt":"I need to find our weakest membership segments — can you numerically order these 5 rows from lowest to highest by member count? Row A: group-starter, 2026-09-01, 45 members, 5 renewals; Row B: group-pro, 2026-09-01, 320 members, 40 renewals; Row C: group-basic, 2026-09-01, 80 members, 12 renewals; Row D: group-elite, 2026-09-01, 600 members, 90 renewals; Row E: group-trial, 2026-09-01, 20 members, 2 renewals. Sort by members."}],"resultDescription":"Returns the submitted membership activity rows reordered according to the specified numeric field (members or renewals), providing a ranked sequence of up to 200 records with their original row_id, tier, date, and numeric values preserved.","failureModes":["Empty or missing rows array returns validation error","Row missing required fields (row_id, tier, date, members, renewals) causes rejection","Invalid date format (not YYYY-MM-DD) triggers pattern validation failure","Field value outside allowed numeric range (-1T to 1T) returns error","More than 200 rows submitted exceeds maxItems limit","Invalid field enum value (not 'members' or 'renewals') causes schema error"],"whenToPreferThis":"Choose this endpoint when you need a simple, local numeric sort of membership activity records by member count or renewal count without external enrichment. Ideal for lightweight analytics pipelines where you have structured membership rows already and just need them rank-ordered for reporting, dashboards, or downstream processing. Best for datasets up to 200 rows where cost efficiency ($0.01 per call) matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:28.118Z","isFirstParty":false,"canonicalSlug":"membership-activity-numeric-row-ordering-743da586"}