Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Fixed sorting of screenshots in generated PDF file
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Nov 12, 2014
1 parent 5581685 commit 81a89e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/deliver/pdf_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def render(deliverer, export_path = nil)
move_cursor_to top

if (content[:screenshots] || []).count > 0
content[:screenshots].sort{ |a, b| a.screen_size <=> b.screen_size }.each do |screenshot|
content[:screenshots].sort_by { |a| [:screen_size, :path] }.each do |screenshot|

if last_size and last_size != screenshot.screen_size
# Next row (other simulator size)
Expand Down

0 comments on commit 81a89e6

Please sign in to comment.