Added sort table to view all records