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) exit(1)
end end
input.sort { |a, b| input.sort { |apple, orange|
a_p = item_property(a, property) apple_property = item_property(apple, property)
b_p = item_property(b, property) orange_property = item_property(orange, property)
if !a_p.nil? && b_p.nil? if !apple_property.nil? && orange_property.nil?
- order - order
elsif a_p.nil? && !b_p.nil? elsif apple_property.nil? && !orange_property.nil?
+ order + order
else else
a_p <=> b_p apple_property <=> orange_property
end end
} }
end end