sorcerer-merlin / torrdex

Semi-Private BitTorrent Indexing Community
GNU General Public License v3.0
3 stars 1 forks source link

Sortable Columns #9

Closed sorcerer-merlin closed 9 years ago

sorcerer-merlin commented 9 years ago

So we implemented sortable columns. And then this week I fixed certain columns having issues properly sorting their data (i.e. Age and Size). I would like to leave the current system in place only when the option to have Torrent Listing/Search results paged is turned OFF. When sorting the table in this mode it makes sense and works well. However, when they want the results paged (i.e. when your DB has a huge amount of torrents), I would like column sorting to be done thru a GET variable (for flexibility). This should be fairly easy but still needs to be implemented.

sorcerer-merlin commented 9 years ago

OK, so now with pagination enabled in the options, it uses a GET variable system that modifies the MySQL query and does the sorting directly. When the pagination is not enabled in the options, the javascript sortable class is used and does dynamic sorting on the table of information -- i.e. the sorting is not done through the GET variable or the direct MySQL query).