@@ -106,7 +106,7 @@ CoreUI builds upon Bootstrap by providing production-ready components, advanced
106
106
`
107
107
108
108
const groupOrder = [ 'components' , 'forms' , 'utilities' , 'helpers' ]
109
- const sortedGroups = Object . keys ( sections ) . sort ( ( a , b ) => {
109
+ const sortedGroups = Object . keys ( sections ) . toSorted ( ( a , b ) => {
110
110
const ai = groupOrder . indexOf ( a )
111
111
const bi = groupOrder . indexOf ( b )
112
112
return ( ai === - 1 ?999 :ai ) - ( bi === - 1 ?999 :bi )
@@ -116,7 +116,7 @@ CoreUI builds upon Bootstrap by providing production-ready components, advanced
116
116
indexContent += `## 📁${
117
117
group . charAt ( 0 ) . toUpperCase ( ) + group . slice ( 1 )
118
118
} \n\n`
119
- for ( const item of sections [ group ] . sort ( ( a , b ) =>
119
+ for ( const item of sections [ group ] . toSorted ( ( a , b ) =>
120
120
a . title . localeCompare ( b . title )
121
121
) ) {
122
122
indexContent += `- [${ item . title } ](${ item . path } )\n`
@@ -146,7 +146,7 @@ async function generateSingleMergedFile() {
146
146
let mergedContent = `# 🧠 CoreUI LLM Knowledge Base\n\n`
147
147
mergedContent += `This file contains all CoreUI documentation files in a format optimized for large language models (LLMs).\n\n`
148
148
149
- for ( const filePath of allFiles . sort ( ) ) {
149
+ for ( const filePath of allFiles . toSorted ( ) ) {
150
150
const relPath = path . relative ( inputDir , filePath )
151
151
const relativeDir = relPath . split ( path . sep ) [ 0 ]
152
152