We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a1421c commit e1d5a13Copy full SHA for e1d5a13
web/db.rb
@@ -65,7 +65,8 @@ def list_empty_bags(&blk)
65
def list_nonempty_bags_by_page(gap, n, &blk)
66
$db.fetch("select bag_id, dir from bag where exists
67
(select * from file natural join image natural join bag_file
68
- where bag_file.bag_id = bag.bag_id) limit ? offset ? ",
+ where bag_file.bag_id = bag.bag_id) order by sorting_time desc
69
+ limit ? offset ? ",
70
gap, n * gap) { |r| blk.call(r) }
71
end
72
0 commit comments