---
name: "vfs_dirsort"
section: "8"
platform: "linux"
package: "samba"
version: "2:4.25.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/vfs_dirsort"
---

# vfs\_dirsort(8)

Sort directory contents

## NAME

vfs\_dirsort - Sort directory contents

## SYNOPSIS

vfs objects = dirsort

## DESCRIPTION

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

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

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

## EXAMPLES

Sort directories for all shares:

```
        [global]
	vfs objects = dirsort
```

## VERSION

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

## AUTHOR

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.
