It seems like sortable_link works well if you are pulling data from only one database but what happens if you have to do a look-up on one of the fields? Consider the following model for my activity log. It has the following fields in the database: id, user_id int(11), ip_address varchar(255), controller varchar(255), action varchar(255), params text
The user_id is obvisously an integer representing a user_id so in my view I would need to do a look-up to get the user login or user name based on that id. I'm going to paste my listing.tpl view and I was wondering if anyone could tell me how to sort on the user field. See below for the code: