Fixed statistics data filter and added table sorting