lib/wice_grid.rb
# Returns true if the current results are ordered by the passed column.
Returns true if the current results are ordered by the passed column.
Returns true if the current results are ordered by the passed column .
def ordered_by?(column)
      return nil if @status[:order].blank?
      if column.main_table && ! @status[:order].index('.') || column.table_alias_or_table_name.nil?
        @status[:order] == column.attribute
      else
        @status[:order] == column.table_alias_or_table_name + '.' + column.attribute
      end
    end
def ordered_by? ( column ) return nil if @status [ :order ] . blank? if column . main_table && ! @status [ :order ] . index ( '.' ) || column . table_alias_or_table_name . nil? @status [ :order ] == column . attribute else @status [ :order ] == column . table_alias_or_table_name + '.' + column . attribute end end
Returns true if the current results are ordered by the passed column.
Returns true if the current results are ordered by the passed column .
column