sorting of statistics