def sort(*args)
      if args.all? {|a| a.is_a?(Symbol) || a.is_a?(Array)}
        orig_sort(args.map {|a| a.is_a?(Symbol) ? [a, 1] : a})
      else
        orig_sort(*args)
      end
    end
def sort(*args)
      if args.all? {|a| a.is_a?(Symbol) || a.is_a?(Array)}
        orig_sort(args.map {|a| a.is_a?(Symbol) ? [a, 1] : a})
      else
        orig_sort(*args)
      end
    end
def sort ( * args ) if args . all? { | a | a . is_a? ( Symbol ) || a . is_a? ( Array ) } orig_sort ( args . map { | a | a . is_a? ( Symbol ) ? [ a , 1 ] : a } ) else orig_sort ( args ) end end
Extend the sort API to allow stuff like:
   sort(:kind, :stamp)
   sort(:kind, :stamp.desc) # see Symbol#desc below
Extend the sort API to allow stuff like : sort ( : kind : stamp ) sort ( : kind : stamp . desc ) # see Symbol#desc below