{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-custom-sorting",
  "framework": "javascript",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "custom-sorting",
  "dependencies": [
    "@syncfusion/ej2-filemanager"
  ],
  "description": "File manager that applies a natural sort comparer so numbered folders sort in numeric order.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": true,
    "platformIndex": "https://ai.syncfusion.com/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/file-manager-custom-sorting.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-custom-sorting/file-manager.html",
      "content": "<div class=\"control-section\">\n    <div class=\"sample-container\">\n        <!-- Initialize FileManager -->\n        <div id=\"container\"></div>\n    </div>\n</div>\n"
    },
    {
      "target": "src/components/file-manager-custom-sorting/file-manager.ts",
      "content": "import { FileManager, Toolbar, NavigationPane, DetailsView, sortComparer } from '@syncfusion/ej2-filemanager';\n\nFileManager.Inject(Toolbar, NavigationPane, DetailsView);\n\n/**\n * File Manager custom sorting sample\n */\nexport function initFileManagerCustomSorting(): void {\n    let hostUrl: string = 'https://physical-service.syncfusion.com/';\n    let fileObject: FileManager = new FileManager({\n        ajaxSettings: {\n            url: hostUrl + 'api/NaturalSorting/FileOperations',\n            getImageUrl: hostUrl + 'api/NaturalSorting/GetImage',\n            uploadUrl: hostUrl + 'api/NaturalSorting/Upload',\n            downloadUrl: hostUrl + 'api/NaturalSorting/Download'\n        },\n        sortComparer: sortComparer,\n        detailsViewSettings: {\n            columns: [\n                { field: 'name', headerText: 'File Name', minWidth: 120, width: 'auto', customAttributes: { class: 'e-fe-grid-name' }, template: '${name}', sortComparer: sortComparer },\n                { field: 'size', headerText: 'File Size', minWidth: 50, width: '110', template: '${size}' },\n                { field: '_fm_modified', headerText: 'Date Modified', minWidth: 50, width: '190' }\n            ]\n        },\n        height: '375px'\n    });\n    fileObject.appendTo('#container');\n}\n"
    }
  ]
}