added sortable Data App function