@tb.p/dd 1.0.0 → 1.1.0

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.
@@ -104,7 +104,10 @@ class DatabaseOperations {
104
104
  file_hash,
105
105
  file_size,
106
106
  COUNT(id) as duplicate_count,
107
- GROUP_CONCAT(file_path, ';') as file_paths
107
+ GROUP_CONCAT(file_path, ';' ORDER BY
108
+ LENGTH(file_path) - LENGTH(REPLACE(REPLACE(file_path, '/', ''), '\\', '')) DESC,
109
+ file_path ASC
110
+ ) as file_paths
108
111
  FROM copies
109
112
  WHERE file_hash IS NOT NULL AND active = 1
110
113
  GROUP BY file_hash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb.p/dd",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A comprehensive command-line tool for finding and removing duplicate files using content-based hashing",
5
5
  "type": "module",
6
6
  "main": "index.js",