修復錯誤
This commit is contained in:
parent
3459ddff38
commit
efce37b471
|
@ -50,7 +50,7 @@ class TableEntry
|
||||||
if column_entries.nil?
|
if column_entries.nil?
|
||||||
values = self.order_by({field => direction})
|
values = self.order_by({field => direction})
|
||||||
else
|
else
|
||||||
values = column_entries.map{|v| v.table_entry}
|
values = column_entries.map{|v| v.table_entry}.compact
|
||||||
values = values.sort_by{|v| v.send(field)}
|
values = values.sort_by{|v| v.send(field)}
|
||||||
if direction == 'desc'
|
if direction == 'desc'
|
||||||
values = values.reverse
|
values = values.reverse
|
||||||
|
|
Loading…
Reference in New Issue