git0 0.3.37 → 0.3.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/fm.js +3 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git0",
3
3
  "description": "CLI tool to search GitHub repositories, download source & releases for your system, and instantly set up, then install dependencies and open code editor.",
4
- "version": "0.3.37",
4
+ "version": "0.3.39",
5
5
  "author": "vtempest",
6
6
  "scripts": {
7
7
  "build": "bun build src/cli.ts --outdir dist --target node --format esm --sourcemap",
package/src/fm.js CHANGED
@@ -234,6 +234,9 @@ export class FileManager {
234
234
  default:
235
235
  result = a.name.localeCompare(b.name, undefined, { numeric: true });
236
236
  }
237
+ // Ties (e.g. a symlink and its target share size/mtime) fall back to name,
238
+ // so order never depends on the filesystem's readdir order
239
+ if (result === 0) result = a.name.localeCompare(b.name, undefined, { numeric: true });
237
240
 
238
241
  return this.sortOrder === 'desc' ? -result : result;
239
242
  });