def sorted(value)
      return [] unless value
      value.sort do |left, right|
        compare(left, right)
      end
    end
def sorted(value)
      return [] unless value
      value.sort do |left, right|
        compare(left, right)
      end
    end
------------------------------
 Conversions