aboutsummaryrefslogtreecommitdiffstats
path: root/util/thumbrepair
diff options
context:
space:
mode:
Diffstat (limited to 'util/thumbrepair')
-rwxr-xr-xutil/thumbrepair2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/thumbrepair b/util/thumbrepair
index acd453719..a37e978af 100755
--- a/util/thumbrepair
+++ b/util/thumbrepair
@@ -17,7 +17,7 @@ if($x) {
$width = $xx['width'];
$height = $xx['height'];
- $n = q("SELECT * FROM photo WHERE resource_id = '%s' AND imgscale > 0",
+ $n = q("SELECT * FROM photo WHERE resource_id = '%s' AND imgscale > 0 ORDER BY imgscale",
dbesc($xx['resource_id'])
);