Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

localeCompare

Ishaan Jaff24dd6559a68d
diff --git a/docs/my-website/docusaurus.config.js b/docs/my-website/docusaurus.config.js
index 1cfcd0df81b..7a45eff4c71 100644
--- a/docs/my-website/docusaurus.config.js
+++ b/docs/my-website/docusaurus.config.js
@@ -43,7 +43,12 @@ const config = {
id: 'release_notes',
path: './release_notes', // Folder where your release notes are stored
routeBasePath: '/release_notes', // URL path for the release notes
- sortPosts: 'descending',
+ sortPosts: (a, b) => {
+ // Extract folder names from the file paths
+ const folderA = a.metadata.permalink.split('/')[2]; // Get folder name from permalink
+ const folderB = b.metadata.permalink.split('/')[2];
+ return folderA.localeCompare(folderB); // Compare folder names
+ },
include: ['**/*.md', '**/*.mdx'], // Files to include
// Other blog options
},