reverse media sorting
This commit is contained in:
@@ -7,7 +7,7 @@ module Admin
|
|||||||
|
|
||||||
expose :photos_buckets do |available_paths|
|
expose :photos_buckets do |available_paths|
|
||||||
available_paths.each_with_object({}) do |root, memo|
|
available_paths.each_with_object({}) do |root, memo|
|
||||||
memo[root.gsub(MEDIA_DIR, "")] = Dir["#{root}/**"].sort {|a,b| File.ctime(a) <=> File.ctime(b) }
|
memo[root.gsub(MEDIA_DIR, "")] = Dir["#{root}/**"].sort {|a,b| File.ctime(b) <=> File.ctime(a) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user