def clause_valid?
      if @clause.is_a?(Hash)
        @clause.flatten.find do |e|
          return true unless (/\basc\b|\bdesc\b/).match(e).nil?
        end
      else
        return true unless @clause.split.empty?
      end
    end
def clause_valid?
      if @clause.is_a?(Hash)
        @clause.flatten.find do |e|
          return true unless (/\basc\b|\bdesc\b/).match(e).nil?
        end
      else
        return true unless @clause.split.empty?
      end
    end
Creates an OrderParser instance based on a clause argument.  The instance
 can then be parsed into a valid ReQON string for queries

 * *Args* :
   - +clause+ -> A hash or string ordering value
 * *Returns* :
   - A Montage::OrderParser instance
 * *Raises* :
   - +ClauseFormatError+ -> If a blank string clause or a hash without
     a valid direction is found.

 Validates clause arguments by checking a hash for a full word match of
 "asc" or "desc".  String clauses are rejected if they are blank or
 consist entirely of whitespace

 * *Returns* :
   - A boolean