Updated sort_column method in ApplicationHelper