/mostplayed doesn't work (bad sort)
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?)