Sort files and folders in VS Code’s Explorer using a simple .order file at your workspace root. It respects .gitignore, adjusts mtimes safely, and logs to the “Custom Explorer Sort” Output channel.
Items listed in .order appear first, in your order
Pattern lines with (regex) use glob-like matching (minimatch)
Everything else follows alphabetically
Ignores anything excluded by .gitignore (and always ignores .git/)
How it works: the extension temporarily sets Explorer sort to “modified” and bumps mtimes with ~1.1s spacing to ensure a stable order; it restores your sort on deactivate.