module Doorkeeper::Models::Orderable::ClassMethods

def ordered_by(attribute, direction = :asc)

def ordered_by(attribute, direction = :asc)
  order(attribute => direction)
end