Table sorting in popup