Skip to content

Commit

Permalink
OD-1793 Chapters in import requests should be sorted by position not …
Browse files Browse the repository at this point in the history
…ID (#216)
  • Loading branch information
brianna-dardin authored Mar 5, 2024
1 parent 5cf9cec commit 1970001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/story.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def to_work(archive_config, host)
end,
id,
summary,
chapters.map { |c| chapter_url(c, host: host) }
chapters.sort_by(&:position).map { |c| chapter_url(c, host: host) }
)
end
end

0 comments on commit 1970001

Please sign in to comment.