{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-custom-sorting",
  "framework": "angular",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "custom-sorting",
  "dependencies": [
    "@syncfusion/ej2-angular-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/angular/llms.txt",
    "skillPack": "syncfusion/angular-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/angular/file-manager-custom-sorting.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-custom-sorting/file-manager.component.html",
      "content": "<div class=\"sample-container\">\n    <ejs-filemanager id='overview' [ajaxSettings]='ajaxSettings' [sortComparer]='sortComparer' [detailsViewSettings]='detailsViewSettings' height=\"375px\">\n    </ejs-filemanager>\n</div>\n"
    },
    {
      "target": "src/components/file-manager-custom-sorting/file-manager.component.ts",
      "content": "import { Component, ViewEncapsulation } from '@angular/core';\nimport { FileManagerModule, NavigationPaneService, ToolbarService, DetailsViewService, sortComparer } from '@syncfusion/ej2-angular-filemanager';\n/**\n * File Manager custom sorting sample\n */\n@Component({\n    selector: 'control-content',\n    templateUrl: 'file-manager.component.html',\n    styleUrls: ['../file-manager-common.style.css'],\n    encapsulation: ViewEncapsulation.None,\n    providers: [NavigationPaneService, ToolbarService, DetailsViewService],\n    standalone: true,\n    imports: [FileManagerModule]\n})\n\nexport class CustomSortingController {\n    public ajaxSettings?: object;\n    public sortComparer?: object;\n    public detailsViewSettings?: object;\n    public hostUrl: string = 'https://physical-service.syncfusion.com/';\n    public ngOnInit(): void {\n        this.ajaxSettings = {\n            url: this.hostUrl + 'api/NaturalSorting/FileOperations',\n            getImageUrl: this.hostUrl + 'api/NaturalSorting/GetImage',\n            uploadUrl: this.hostUrl + 'api/NaturalSorting/Upload',\n            downloadUrl: this.hostUrl + 'api/NaturalSorting/Download'\n        };\n        this.sortComparer = sortComparer;\n        this.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    }\n}\n"
    }
  ]
}