confidence (0–1, or null) is how far to trust the whole order.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Levanto Sage","description":"Documentation for Sage by Levanto: decisions, extraction and streaming. Typed answers your software can act on, and a clear null when Sage isn't sure.","colors":{"primary":"#1438d4","light":"#8ea4ff","dark":"#1438d4"},"logo":{"light":"https://levanto.ai/brand/levanto-wordmark-blue.svg","dark":"https://levanto.ai/brand/levanto-wordmark-paper.svg","href":"https://levanto.ai"},"favicon":"https://levanto.ai/favicon/android-chrome-192x192.png","appearance":{"default":"light","strict":true},"background":{"color":{"light":"#fdfcf8"}},"navbar":{"links":[{"icon":"download","href":"https://platform.levanto.ai/api/intelligence/skill","label":"Skill"},{"href":"https://levanto.ai","label":"levanto.ai"}],"primary":{"type":"button","label":"Start building","href":"https://platform.levanto.ai/login?mode=google\u0026utm_source=docs.levanto.ai\u0026utm_medium=docs\u0026utm_campaign=docs_nav"}},"footer":{"socials":{"x":"https://x.com/levantolabs","github":"https://github.com/levantolabs","linkedin":"https://www.linkedin.com/company/levantolabs"}},"seo":{"metatags":{"og:image":"https://levanto.ai/opengraph-image.jpg","og:site_name":"Levanto Labs","og:title":"Sage docs | Levanto","og:description":"Sage decides, extracts and streams: your software asks while it runs and gets typed answers it can act on.","og:url":"https://docs.levanto.ai","twitter:card":"summary_large_image","twitter:title":"Sage docs | Levanto","twitter:description":"Sage decides, extracts and streams: your software asks while it runs and gets typed answers it can act on."}},"fonts":{"heading":{"family":"Geist","weight":500},"body":{"family":"Geist"}},"styling":{"codeblocks":{"theme":"github-light"},"latex":false},"integrations":{"ga4":{"measurementId":"G-M9MZLVVFK1"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"levanto","hasAudioNarration":false,"actualSubdomain":"levanto","customDomains":["docs.levanto.ai"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-levanto-29dfcadc","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae86b825d89f58bdbcea96c","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Decision kinds","count":5},{"language":"default","tag":"Options","count":4},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Overview","count":3},{"language":"default","tag":"Extract and stream","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"decision-model/sort","slug":"/decision-model/sort","pageMetadata":{"title":"Sort decisions","description":"Rank a list of items by a criterion.","sidebarTitle":"Sort","icon":"arrow-down-wide-short","href":"/decision-model/sort"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Rank a list of items by a criterion.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`content`}),` is a list of 2–120 items. The question takes only `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`kind`}),` and `,_jsx(_components.code,{children:`instructions`}),`; any other field returns 400.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-light`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#fff`,color:`#24292e`,\"--shiki-dark\":`#24292e`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"list\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:` {`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"typo\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"Spelling mistake on the FAQ page.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:` {`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"db_down\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"Primary production database is unreachable.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:` {`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"pricing\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"Prospect asking about Enterprise pricing.\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"question\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"triage\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"sort\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"instructions\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"Sort by operational urgency, most urgent first.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-light`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#fff`,color:`#24292e`,\"--shiki-dark\":`#24292e`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"triage\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"sort\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"sorted\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: [`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"db_down\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"pricing\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`, `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"typo\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`], `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"confidence\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`0.76`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:` \"meta\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: { `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"model\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#032F62`},children:`\"levanto-sage-2\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`, `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`\"latency_ms\"`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`: `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#005CC5`},children:`192.3`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#24292E`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`confidence`}),` (0–1, or `,_jsx(_components.code,{children:`null`}),`) is how far to trust the whole order.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":"github-light"},"config":{},"pageMetadata":{"title":"Sort decisions","description":"Rank a list of items by a criterion.","sidebarTitle":"Sort","icon":"arrow-down-wide-short","href":"/decision-model/sort"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"levanto","siteName":"Levanto Sage","title":"Sage docs | Levanto","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T10:33:17.477Z","originalFileLocation":"decision-model/sort.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Rank a list of items by a criterion.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Levanto Sage\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://levanto.ai/favicon/android-chrome-192x192.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://levanto.ai/favicon/android-chrome-192x192.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://levanto.ai/favicon/android-chrome-192x192.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://levanto.ai/favicon/android-chrome-192x192.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Sage docs | Levanto\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sage decides, extracts and streams: your software asks while it runs and gets typed answers it can act on.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Levanto Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.levanto.ai/decision-model/sort\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://levanto.ai/opengraph-image.jpg\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Sage docs | Levanto\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sage decides, extracts and streams: your software asks while it runs and gets typed answers it can act on.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://levanto.ai/opengraph-image.jpg\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/levanto/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Levanto Sage\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1438d4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.levanto.ai/decision-model/sort\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/decision-model/sort.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.levanto.ai/#organization\",\"name\":\"Levanto Sage\",\"url\":\"https://docs.levanto.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://levanto.ai/brand/levanto-wordmark-blue.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.levanto.ai#website\",\"name\":\"Levanto Sage\",\"url\":\"https://docs.levanto.ai\",\"publisher\":{\"@id\":\"https://docs.levanto.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.levanto.ai/decision-model/sort#webpage\",\"url\":\"https://docs.levanto.ai/decision-model/sort\",\"name\":\"Sort decisions\",\"description\":\"Rank a list of items by a criterion.\",\"dateModified\":\"2026-11-02T10:33:17.477Z\",\"isPartOf\":{\"@id\":\"https://docs.levanto.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.levanto.ai/decision-model/sort#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.levanto.ai/decision-model/sort#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Decision kinds\",\"item\":\"https://docs.levanto.ai/decision-model/yesno\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sort decisions\",\"item\":\"https://docs.levanto.ai/decision-model/sort\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.levanto.ai/decision-model/sort#article\",\"headline\":\"Sort decisions\",\"name\":\"Sort decisions\",\"description\":\"Rank a list of items by a criterion.\",\"url\":\"https://docs.levanto.ai/decision-model/sort\",\"mainEntityOfPage\":{\"@id\":\"https://docs.levanto.ai/decision-model/sort#webpage\"},\"image\":\"https://levanto.ai/opengraph-image.jpg\",\"dateModified\":\"2026-11-02T10:33:17.477Z\",\"publisher\":{\"@id\":\"https://docs.levanto.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.levanto.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Levanto Sage\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Levanto Sage\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/decision-model/sort.md","siteName":"Levanto Sage","nav":{"global":null,"groups":[{"group":"Overview","icon":"house","pages":[{"title":"Introduction","icon":"house","href":"/index"},{"title":"Quickstart","icon":"rocket","href":"/decision-model/quickstart"},{"title":"Pricing","icon":"tag","href":"/pricing"}]},{"group":"Extract and stream","icon":"sparkles","pages":[{"title":"Extraction","sidebarTitle":"Extract","icon":"table-list","href":"/extract"},{"title":"Streaming decisions","sidebarTitle":"Stream","icon":"wave-square","href":"/stream"}]},{"group":"Decision kinds","icon":"brain","expanded":true,"pages":[{"title":"Yes/No decisions","sidebarTitle":"Yes/No","icon":"circle-check","href":"/decision-model/yesno"},{"title":"Choice decisions","sidebarTitle":"Choice","icon":"list","href":"/decision-model/choice"},{"title":"Scale decisions","description":"Score content against your own rubric.","sidebarTitle":"Scale","icon":"gauge","href":"/decision-model/scale"},{"title":"Sort decisions","sidebarTitle":"Sort","icon":"arrow-down-wide-short","href":"/decision-model/sort"},{"title":"Tags decisions","description":"A verdict per label: applies, doesn't apply, or null.","sidebarTitle":"Tags","icon":"tags","href":"/decision-model/tags"}]},{"group":"Options","icon":"sliders","pages":[{"title":"Reasoning","icon":"lightbulb","href":"/decision-model/reasoning"},{"title":"Grounding","icon":"globe","href":"/decision-model/grounding"},{"title":"Images (beta)","icon":"image","href":"/decision-model/images"},{"title":"Batch requests","sidebarTitle":"Batch","icon":"layer-group","href":"/decision-model/batch"}]},{"group":"Reference","icon":"book","pages":[{"title":"Limits and errors","icon":"ruler","href":"/decision-model/limits"},{"title":"SystemOne API","sidebarTitle":"SystemOne API","icon":"plug","href":"/systemone"},{"title":"OpenAPI","sidebarTitle":"OpenAPI","icon":"code","url":"https://sage.levanto.ai/openapi.json","href":"/openapi-schema"},{"title":"Agent skill","sidebarTitle":"Agent skill","icon":"robot","href":"/levanto-sage-decide"}]}]},"basePath":"","title":"Sage docs | Levanto","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}