Please help in sorting the form
2 tables
Category
id, Name
Order
id,Category_id,etc
<table class="dataGridttc1" id="tn-records-grid">
<thead>
<tr>
<th><?php echo $sort->link('Category_id'); ?></th>
In this code it sorts by category id but I want it to be sorted by Category Name not by ID
In the order model I have defined the relation.