equal
deleted
inserted
replaced
73 ### |
73 ### |
74 def order_metadata( *columns ) |
74 def order_metadata( *columns ) |
75 columns.flatten! |
75 columns.flatten! |
76 ds = self |
76 ds = self |
77 columns.each do |column| |
77 columns.each do |column| |
78 if Thingfish::Metastore::PG::Metadata.metadata_columns.include?( column.to_sym ) |
78 if Thingfish::Metastore::PgGraph::Node.metadata_columns.include?( column.to_sym ) |
79 ds = ds.order_append( column.to_sym ) |
79 ds = ds.order_append( column.to_sym ) |
80 else |
80 else |
81 ds = ds.order_append( self.user_metadata_expr(column) ) |
81 ds = ds.order_append( self.user_metadata_expr(column) ) |
82 end |
82 end |
83 end |
83 end |