Fix sorting by upload date.
#1
Sorting by date does not work correctly and it bothers me immensely. It only works for year and month, but not days.
I found a solution.
In the function sortlist(sr):
Add case for sr == 3 like so:

Code:
  if (sr == 5) {
    tinysort("li#st", { selector: "input", attr: "value" });
    return;
  } else if (sr == 3) {
    tinysort("li#st", {
      selector: "span:nth-child(" + sr + ")",
      forceStrings: true,
    });
  } else {
    tinysort("li#st", "span:nth-child(" + sr + ")");
  }
Reply
#2
Found this problem a while back and suggested similar workaround.
Until site owner decides to fix it, here is a workaround.

Used this code for reference and added your code snippet.

Complete script is attached. Remove the '.txt' from filename, before using.

The code looks unsightly, but seems to work.
Hopefully there is a 'cleaner' way to override .js functions.

You'll need Greasemonkey (or tampermonkey/violetmonkey).

Or just use a TPB mirror site Wink

Hope this helps.


Attached Files
.txt   TPBSort.user.js.txt (Size: 1.77 KB / Downloads: 135)
Reply
#3
I had reported it as well!!
https://pirates-forum.org/Thread-Incorre...oaded-time
Thanks for the script, hope will be fixed soon
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fix the "login" "register" buttons sharingiscaring2023 0 1,842 Aug 13, 2024, 17:16 pm
Last Post: sharingiscaring2023
  SuprBay: Fix "Link your TPB account" option! lustrous 0 7,002 Jan 15, 2024, 12:43 pm
Last Post: lustrous
  SuprBay: Time-date stamp of 2 consecutive posts dynstab2 2 14,337 Dec 07, 2017, 23:36 pm
Last Post: Moe
  SuprBay: Fix error Code [the torrent file seems to be broken] fast700 3 15,989 Apr 29, 2017, 19:05 pm
Last Post: Sid
  Top torrent list sorting !! D.Lion.King 4 19,511 Mar 06, 2017, 00:53 am
Last Post: Sid



Users browsing this thread: 1 Guest(s)