aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 3afe941..8a82916 100644
--- a/main.go
+++ b/main.go
@@ -687,7 +687,8 @@ func getOrphans() (result []webOrphan, err error) {
FROM orphan AS o
JOIN image AS i ON o.sha1 = i.sha1
LEFT JOIN tag_assignment AS ta ON o.sha1 = ta.sha1
- GROUP BY o.sha1`)
+ GROUP BY o.sha1
+ ORDER BY path`)
if err != nil {
return nil, err
}