Dynamic Sort - GET.sort and GET.dir output

Dynamic Sort - GET.sort and GET.dir does not output correctly

I have tried to create a bootstrap table that is sortable. but it does not work. so i went back to the basics and still I cant get the sorting to work. Can somebody tell me where i missed something?

Here is a link to the page basic setup.

  1. https://tradersauction.co.za/test.php?sort=title&dir=asc

  1. https://tradersauction.co.za/test.php?sort=title&dir=desc

You will see the data does not Ascend or Descend

But if you DEBUG it… it shows in the sql?

https://tradersauction.co.za/test_debug.php?sort=title&dir=desc

https://tradersauction.co.za/test_debug.php?sort=title&dir=asc

This is what i have

so im a bit confused… any help or maybe i have missed something as i have followed the steps from

Add the columns you need to the select list in the query builder, don’t just add auctions.*
The sort options don’t work when you add the table like that, for security reasons.

3 Likes

Thanks @Teodor it was driving my head in i could not understand why… but thanks for explaining that… did not know… :slight_smile:

Once again thanks for the quick support @Teodor. Always answering questions… even if its the same one over and over… and over… and over… because i wont have the patience to do this… so for that I salute you…

2 Likes