lib/kbam.rb
#FIXME: change to class method
# senatize sort e.g. asc / desc
change to class method
senatize sort e.g. asc / desc
change to class method senatize sort e . g . asc / desc
def sort_sanatize(sort)
		sort = sort.to_s.strip.upcase
		if sort =~ /\ADE?SC\Z/
			return 'DESC'
		else
			return 'ASC'
		end
	end
def sort_sanatize ( sort ) sort = sort . to_s . strip . upcase if sort =~ / \A DE?SC \Z / return 'DESC' else return 'ASC' end end
FIXME: change to class method
senatize sort e.g.
FIXME : change to class method senatize sort e . g .
#if it matches DESC or DSC
sort