Sort data by clicking column headers.