瀏覽代碼

Sort priority correctly

Zachary Kotlarek 12 年之前
父節點
當前提交
fb5009c4f8
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      backup/upload.php

+ 1 - 1
backup/upload.php

@@ -51,7 +51,7 @@ $folders = $dbh->prepare('SELECT base, path FROM files WHERE ' .
 $files = $dbh->prepare('SELECT base, path FROM files WHERE ' .
 	"(type != 'ignored' AND type != 'folder') AND " .
 	'(remote_mtime IS NULL OR remote_mtime < mtime) ' .
-	'ORDER BY priority, path'
+	'ORDER BY priority DESC, path'
 );
 $update = $dbh->prepare('UPDATE files SET remote_mtime = now() WHERE base = :base AND path = :path');