ListViewmyListView=(ListView)sender;//Determineifclickedcolumnisalreadythecolumnthatisbeingsorted.if(e.Column==lvwColumnSorter.SortColumn){//Reversethecurrentsortdirectionforthiscolumn.if(lvwColumnSorter.Order==SortOrder.Ascending){lvwColumnSorter.Order=SortOrder.Des