Kongregate Get

By Matthew Ammann Last update Oct 10, 2010 — Installed 1,109 times.

/mostplayed doesn't work (bad sort)

in
Subscribe to /mostplayed doesn't work (bad sort) 1 post, 1 voice

zAlbee User
ChromeWindows

The /mostplayed command is not working properly (it doesn't sort properly) in this script. In the Better Kongregate version, it is working fine.

Likely culprit is the compare function passed to sort() should return -1, 0, 1, for a <,=,> than b, not just 1 if a > b.

Second possibility is parsing an int from an object (WTF?)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel