{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-custom-sorting",
  "framework": "react",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "custom-sorting",
  "dependencies": [
    "@syncfusion/ej2-react-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/react/llms.txt",
    "skillPack": "syncfusion/react-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/react/js/file-manager-custom-sorting.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-custom-sorting/FileManager.jsx",
      "content": "import { DetailsView, FileManagerComponent, NavigationPane, Toolbar, Inject, sortComparer } from '@syncfusion/ej2-react-filemanager';\n/**\n * File Manager custom sorting sample\n */\nconst CustomSorting = () => {\n    let hostUrl = \"https://physical-service.syncfusion.com/\";\n    let ajaxSettings = {\n        downloadUrl: hostUrl + 'api/NaturalSorting/Download',\n        getImageUrl: hostUrl + \"api/NaturalSorting/GetImage\",\n        uploadUrl: hostUrl + 'api/NaturalSorting/Upload',\n        url: hostUrl + \"api/NaturalSorting/FileOperations\"\n    };\n    let detailsViewSettings = {\n        columns: [\n            { field: 'name', headerText: 'File Name', minWidth: 120, width: 'auto', 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    let height = \"375px\";\n    return (<div className=\"control-section\">\n    <FileManagerComponent id=\"file\" height={height} ajaxSettings={ajaxSettings} detailsViewSettings={detailsViewSettings} sortComparer={sortComparer}>\n      <Inject services={[NavigationPane, DetailsView, Toolbar]}/>\n    </FileManagerComponent>\n  </div>);\n};\nexport default CustomSorting;\n"
    }
  ]
}