Stats sorting fix.