(07-03-2017, 11:53 AM)adam2552 Wrote:The sim is sorting "correctly" by how the programmer defined the stats. For some reason those stats are "Text" and not "Integer." So when it is sorting, it is sorting alphabetically and not numerically from largest to smallest. Programmer error.
This was bugging me a little bit since I use the stat page a lot, so I went ahead and made a quick fix. If the top row has a column that equals 0 it's looking at it as text as you mentioned. If anyone is interested here's how I did it:
How to implement locally (Chrome only):
1) Install extension Resource Override
2) Under Resource Override options, leave Tab URL as *
3) In From box enter http://www.nsfl.wtgbear.com/*/Scripts/jque...lesorter.min.js
4) In To box enter: http://cdn.rawgit.com/Noppadet/NSFL-Sacks-...lesorter.min.js picture for how it should look: http://i.imgur.com/ET5KHn9.png
5) Clear cache, reload. It should work. This will work on all seasons, and all stat pages as far as I'm aware, so it's a one time thing if you don't mind adding another extension.
If it's possible to just replace the one used in the webpage then minifying the rawgit.com version and replacing the current file in Scripts should also work. I left the one I uploaded unminified for transparency. Probably not important enough to warrant a fix really, but oh well.
edit: I forwarded this to princekyle to see if he can/wants to replace the server file instead of messing with it locally like this.
[style]#steph-harrison-dropdown{bottom:0;width:400px;top:0}#steph-harrison-dropdown select{width:400px;font-family:Arial;font-weight:bolder;font-size:11px;color:#A9A9A9;background-color:#202020;}#steph-harrison-dropdown option{width:400px;font-family:Arial;font-size:11px;color:#A9A9A9;background-color:#202020;-webkit-appearance:none}[/style]