Add sortable data feature. Some bugs are present.