# File lib/facet/string/cmp.rb, line 12 def cmp(other) return -1 if length < other.length return 1 if length > other.length self <=> other # alphabetic compare end