Skip to content

Commit

Permalink
Fix documents custom-ordering logic (#8028)
Browse files Browse the repository at this point in the history
Merge pull request 8028
  • Loading branch information
ashmaroli committed Mar 12, 2020
1 parent 1115eeb commit f826b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/collection.rb
Expand Up @@ -239,7 +239,7 @@ def sort_docs_by_key!

# Fall back to `Document#<=>` if the properties were equal or were non-sortable
# Otherwise continue with current sort-order
if order.zero? || order.nil?
if order.nil? || order.zero?
apples[-1] <=> olives[-1]
else
order
Expand Down

0 comments on commit f826b8b

Please sign in to comment.