VFS\_DIRSORT(8) System Administration tools VFS\_DIRSORT(8)

# [NAME](#NAME)

vfs\_dirsort - Sort directory contents

# [SYNOPSIS](#SYNOPSIS)

.HP 24u

vfs objects = dirsort

# [DESCRIPTION](#DESCRIPTION)

.PP This VFS module is part of the [**samba**(7)](/man/os/samba/samba.7) suite.

.PP The vfs\_dirsort module sorts directory entries alphabetically before sending them to the client.

.PP Please be aware that adding this module might have negative performance implications for large directories.

# [EXAMPLES](#EXAMPLES)

.PP Sort directories for all shares:

```


        [global]
	vfs objects = dirsort
```

# [VERSION](#VERSION)

.PP This man page is part of version 4.25.1 of the Samba suite.

# [AUTHOR](#AUTHOR)

.PP The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.

11/05/2026 Samba 4.25.1

---

Document: vfs_dirsort(8) from samba 4.25.1-r1 (Chainguard OS)
Source: https://github.com/samba-team/samba
