@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.
- package/database/dbOperations.js +4 -1
- package/package.json +1 -1
package/database/dbOperations.js
CHANGED
|
@@ -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, ';'
|
|
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
|