Added test coverage for sort_natural

This commit is contained in:
Eric Chan
2017-09-13 22:17:59 -04:00
parent 59950bff87
commit cfe1844de9
2 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ module Liquid
a = a[property]
b = b[property]
if a && b
a[property].to_s.casecmp(b[property].to_s)
a.to_s.casecmp(b.to_s)
else
a ? -1 : 1
end