Here's a quick & dirty way to make all RaCharts sortable, using a userscript. In fact, it converts all tables in any discussion thread in SG to sortable.

Hope some of you might find it useful, it can be modified to work in other sites too (just add //@match lines). Either click this or use Tampermonkey's dashboard to create a new blank userscript, then paste the following code:

// ==UserScript==
// @name            SortableTables
// @namespace       http://tampermonkey.net/
// @description     Makes all tables sortable in SG discussion threads.
// @version         0.22
// @author          judgegr
// @match           https://www.steamgifts.com/discussion/*
// @match           https://www.steamtrades.com/trade/*
// @match           https://www.reddit.com/r/GameDeals/*
// @require         http://www.kryogenix.org/code/browser/sorttable/sorttable.js
// @downloadURL     https://gist.github.com/judgegr/fd4353f4d6db0cf8d9ca6074b256c7c9/raw/sortabletables.user.js
// @updateURL       https://gist.github.com/judgegr/fd4353f4d6db0cf8d9ca6074b256c7c9/raw/sortabletables.user.js 
// @grant           none
// ==/UserScript==

(function() {
    $("table").addClass("sortable");
})();

Updates for v0.22

  • Now works on SteamTrades tables and Reddit GameDeals too, thanks to d3m4n for mentioning!
  • Auto-updating

Quick FAQ

Just load the script, open a discussion or a trade thread with an embedded table , click the table headers to sort the column in asc/desc order.

_へ__(‾◡◝ )>

7 years ago*

Comment has been collapsed.

hmm that can come in hand in a few diff ways xD

(sort by best review, sort by price, etc.)

i'd probably add in the sister site by default though (steamtrades.com)

7 years ago
Permalink

Comment has been collapsed.

Fun fact is that i felt the need of a sorting function, while browsing your awesome post about DIG store and the accompanying huge Rachart ;)

I'm not sure it works on steamtrades, i'm not very familiar with the sister site, but the given library works only on the classic table format <table><tr><td><td></tr></table>

7 years ago*
Permalink

Comment has been collapsed.

the comment formatting and tables over on steamtrades.com are the same as they are here. i'm not sure the rachart would work over there, but sorting peoples trades tables over there would be a common thing if the @match for steamtrades were there.

not a lot of people use tables there, but those that do it would work on.

edit: racharts is not enabled on steamtrades.com - not really a need.. but the table sort could be handy there also.

7 years ago
Permalink

Comment has been collapsed.

Yeap just found a trade with a table and works. (i'm so noob in steamtrades, sorry)

Editing the script and the opening post, thanks and kudos for mentioning that ;)

7 years ago
Permalink

Comment has been collapsed.

nice, and np @ all ^^

7 years ago
Permalink

Comment has been collapsed.

Works well, thank you!

7 years ago
Permalink

Comment has been collapsed.

You're welcome, it was a semi-ready solution to be honest ;)

7 years ago
Permalink

Comment has been collapsed.

Thanks for the BL, genius.

7 years ago
Permalink

Comment has been collapsed.

Thanks for the kind comment and the revenge blacklist mr. 133/26/6887/2months. Can't remember, It's either you're making free game giveaways like Dirt, or your constant greediness in keydrops like the late Yirg's posts.

Anything to contribute to the thread and the community? or you're off to leech some more?

7 years ago
Permalink

Comment has been collapsed.

Can't remember? You gave me nothing but the BL and you sound really fair and reasonable. Keep up the good work. Mr. Judge.

7 years ago
Permalink

Comment has been collapsed.

You game me nothing but the BL

Ehm... NOBODY OWES YOU NOTHING, mate!

Anyway for a second time, this is NOT a topic where we discuss blacklisting. Right now you're hijacking a completely different thread for the sole purpose of trash talking to me because i blacklisted you for ANY valid -or even invalid, if you'd like- reason. Considering your rude self-centered attitude and your invaluable contribution to the society (numbers never lie), i don't even have the tiniest bit of remorse for blacklisting you.

Have a nice day, i would appreciate if you didn't bother me and my threads again.

7 years ago
Permalink

Comment has been collapsed.

Someone who blacklisted me out of nowhere calling me rude. Hahah. Good one.
And please don't bother me with your replies. I'm just letting you know that you are blacklisted mutually unlike your sneaky bl.

Have a nice day too.

7 years ago
Permalink

Comment has been collapsed.

Bit of a hindsight warning: complaining about being blacklisted usually gets you blacklisted by other people

7 years ago
Permalink

Comment has been collapsed.

And please don't bother me with your replies.

That's a first! You're shitting in my totally irrelevant thread, starting a flame about blacklists and you're giving me ultimatums to stop replying? O_o

Well why don't you report me for blacklisting you for "no reason"?
Mods need a new laugh from time to time.

7 years ago
Permalink

Comment has been collapsed.

Works great, good utilite. Thanks.

7 years ago
Permalink

Comment has been collapsed.

I added some ninja timings to the table here, and with this script (sorted by fastest to slowest) you can now consider it a form of leaderboard ;-)

7 years ago
Permalink

Comment has been collapsed.

That's cool!
One ninja honeypot --> endless capabilities ^^

View attached image.
7 years ago*
Permalink

Comment has been collapsed.

bump cause i found another place this script can be useful xD

// @match        https://www.reddit.com/r/GameDeals/*

example: https://www.reddit.com/r/GameDeals/comments/5q46kl/

7 years ago
Permalink

Comment has been collapsed.

Useful indeed, added! thanks once again. :D

7 years ago
Permalink

Comment has been collapsed.

Idk why but for some reason getting tables to be sortable only randomly works for me (using Firefox).

Found an alternative here: https://codebox.net/pages/greasemonkey-table-sorter

4 years ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.