Added sorting for GUI TABLES