added the feature to sort ascending/descending with double click