order by subnodes

master v0.0.4.2
Denis Knauf 2011-10-25 14:30:09 +02:00
parent 8144c72284
commit 8eeb66d99f
2 changed files with 5 additions and 2 deletions

View File

@ -302,7 +302,7 @@ class SmqlToAR
col, o = o
col.joins builder, table
t = table + col.path
raise OnlyOrderOnBaseError.new( t) unless 1 == t.length
#raise OnlyOrderOnBaseError.new( t) unless 1 == t.length
builder.order t, col.col, o
end
end

View File

@ -111,7 +111,10 @@ class SmqlToAR
end
def order table, col, o
@_order.push "#{column table, col} #{:DESC == o ? :DESC : :ASC}"
tc = column table, col
@_select.push ct
@_order.push "#{ct} #{:DESC == o ? :DESC : :ASC}"
self
end
class Dummy