Commit 109bfa9a authored by Sylvester Keil's avatar Sylvester Keil

fix #76

parent d2862668
......@@ -141,7 +141,10 @@ module Jekyll
def sort(unsorted)
return unsorted if skip_sort?
sorted = unsorted.sort_by { |e| e.values_at(*sort_keys).map(&:v) }
sorted = unsorted.sort_by { |e|
e.values_at(*sort_keys).map { |v| v && v.v }
}
sorted.reverse! if config['order'] =~ /^(desc|reverse)/i
sorted
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment