Re: [Rails] Re: SortHelper combined columns

2014-11-13 Thread Colin Law
On 13 November 2014 17:35, Zdravko Balorda wrote: > I use SortHelper which provides for sorting by any column of the table. > With patient name I would like to have only one column. The combined > column could be 'name' as in: > select ..., lastname||', '||firstname as name from patients... order

[Rails] Re: SortHelper combined columns

2014-11-13 Thread Zdravko Balorda
I use SortHelper which provides for sorting by any column of the table. With patient name I would like to have only one column. The combined column could be 'name' as in: select ..., lastname||', '||firstname as name from patients... order by name This column does not appear in the table itself.