# File lib/taps/utils.rb, line 147 def order_by(db, table) pkey = primary_key(db, table) if pkey pkey.kind_of?(Array) ? pkey : [pkey.to_sym] else table = table.to_sym.identifier unless table.kind_of?(Sequel::SQL::Identifier) db[table].columns end end