sorting and highlighting works