Skip to content

Commit 0b28a7c

Browse files
committed
Order the 'changes' in a consistent way
This orders first by 'created_at' descending (newest first) and then by title ascending. This should not be TOO surprising, and doesn't trigger 600+ changed lines after each commit. (Feed readers should also like this a little better than changing up the ordering every time)
1 parent f32411e commit 0b28a7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/changes_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def api_changes(version = nil)
1717
else
1818
changes
1919
end.sort! do |x, y|
20-
attribute_to_time(y[:created_at]) <=> attribute_to_time(x[:created_at])
20+
[attribute_to_time(y[:created_at]), x[:title]] <=> [attribute_to_time(x[:created_at]), y[:title]]
2121
end
2222
end
2323

0 commit comments

Comments
 (0)