Fix documents custom-ordering logic (#8028)

Merge pull request 8028
This commit is contained in:
Ashwin Maroli 2020-03-12 20:28:17 +05:30 committed by GitHub
parent 1115eebe15
commit f826b8b5ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ module Jekyll
# Fall back to `Document#<=>` if the properties were equal or were non-sortable # Fall back to `Document#<=>` if the properties were equal or were non-sortable
# Otherwise continue with current sort-order # Otherwise continue with current sort-order
if order.zero? || order.nil? if order.nil? || order.zero?
apples[-1] <=> olives[-1] apples[-1] <=> olives[-1]
else else
order order