Skip to content

Commit c54c2e9

Browse files
committed
Merge pull request github#993 from Shredder121/changes-ordering
Order the 'changes' in a consistent way
2 parents b9d7288 + 0b28a7c commit c54c2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/changes_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def api_changes(version = nil)
3232
else
3333
changes
3434
end.sort! do |x, y|
35-
attribute_to_time(y[:created_at]) <=> attribute_to_time(x[:created_at])
35+
[attribute_to_time(y[:created_at]), x[:title]] <=> [attribute_to_time(x[:created_at]), y[:title]]
3636
end
3737
end
3838

0 commit comments

Comments
 (0)