Added sorting in stats tool
PKG