Fruity variables

This commit is contained in:
Anatol Broder 2014-05-09 09:21:24 +02:00
parent ab3aaebe6d
commit fb523722b5
1 changed files with 6 additions and 6 deletions

View File

@ -212,16 +212,16 @@ module Jekyll
exit(1)
end
input.sort { |a, b|
a_p = item_property(a, property)
b_p = item_property(b, property)
input.sort { |apple, orange|
apple_property = item_property(apple, property)
orange_property = item_property(orange, property)
if !a_p.nil? && b_p.nil?
if !apple_property.nil? && orange_property.nil?
- order
elsif a_p.nil? && !b_p.nil?
elsif apple_property.nil? && !orange_property.nil?
+ order
else
a_p <=> b_p
apple_property <=> orange_property
end
}
end