equal
deleted
inserted
replaced
65 end |
65 end |
66 end |
66 end |
67 |
67 |
68 return ds |
68 return ds |
69 end |
69 end |
|
70 |
|
71 |
|
72 ### Dataset method: Order results by the specified +columns+. |
|
73 ### |
|
74 def order_metadata( *columns ) |
|
75 columns.flatten! |
|
76 ds = self |
|
77 columns.each do |column| |
|
78 if Thingfish::Metastore::PG::Metadata.metadata_columns.include?( column.to_sym ) |
|
79 ds = ds.order_append( column.to_sym ) |
|
80 else |
|
81 ds = ds.order_append( self.user_metadata_expr(column) ) |
|
82 end |
|
83 end |
|
84 |
|
85 return ds |
|
86 end |
|
87 |
70 |
88 |
71 |
89 |
72 ######### |
90 ######### |
73 protected |
91 protected |
74 ######### |
92 ######### |