Fixed sorting of statistics table