On 13 November 2014 15:30, Zdravko Balorda <li...@ruby-forum.com> wrote: > Hi, > I'd like to sort table of patiens with lastname, firstname in the same > column. > Of course in the model Patient there are two columns, which I need > joined while sortable. > Is there any way to do that with SortHelper?
Can you be more explicit in what you want to sort on? Do you want to sort by lastname and then within those with the same lastname then sort by firstname? If so then just specify something like @patients.order(:lastname, :firstname) Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLswkVG-HwUwzqzBSsrbn7PfJuqP32zF9W3RaKXNbhYHDg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.