Skip to content

Filepath Sort

Sort filepaths based on different criteria.

Inputs#

Port Description
Paths
A list of filepaths to sort.
The criterion used for sorting.

Outputs#

Port Description
The sorted list of filepaths.

Addendum#

Sorting Options#

1. Alphabetical#

Sorts filepaths in alphabetical order.

2. Reverse Alphabetical#

Sorts filepaths in reverse alphabetical order.

3. By Extension#

Sorts filepaths based on their file extensions.

4. By Directory Depth#

Sorts filepaths based on their directory depth (number of subdirectories).

5. By Filename Length#

Sorts filepaths based on the length of the filename (excluding the directory path).

ID: core/filepath-sort@v1