I have this table
<table>
<th>
Food Name
</th>
<th>
Restaurant Name
</th>
<?php
if ($isCustomer == "1") {
?>
<th>
</th><?php
}
?>
<?php while ($row = $allFoods->fetch()) { ?>
<tr>
<td>
<?php echo $row['foodName']; ?>
</td>
<td>
<?php echo $row['restaurantName']; ?>
</td>
<?php
if ($isCustomer == "1") {
?>
<td class="favoriteRow">
<a class="link" href="<?php echo URL . 'customer/addFavoriteFood/' . $row['foodID'] ?>"> Add Favorite</a>
</td>
<?php
}
?>
</tr>
<?php } ?>
</table>
I tried to sort it a lot, but i couldn't, it seems like i have to reload the page with the already sorted items, but i need to sort it using jquery, any help will be appreciated
jqueryto sort on client side while you can sort your things at server side inphp