2015-04-02 54 views
2

我試圖通過jsonb列在使用Rails命令:訂購的Postgres jsonb Rails中

Stat.order("data ->'likes'->'followed_by' ASC") 

我不斷收到此錯誤返回。

PG::UndefinedFunction: ERROR: could not identify an ordering operator for type json 

我想不通它是我的格式? followed_by屬性是一個int。

謝謝!

回答