private int ColumnComparer(int columnIndex, ListViewItem x, ListViewItem y)
 {
     return((0 == columnIndex)
                ?
            ComparerMethods.AdStatusComparer(x.Text, y.Text)
                : string.Compare(x.SubItems[columnIndex].Text, y.SubItems[columnIndex].Text));
 }
 private int ColumnComparer(int columnIndex, ListViewItem x, ListViewItem y)
 {
     if (columnIndex == 2)
     {
         return(ComparerMethods.DescriptionComparer(x.SubItems[columnIndex].Text, y.SubItems[columnIndex].Text));
     }
     if (columnIndex == 1)
     {
         return(ComparerMethods.AdStatusComparer(x.SubItems[columnIndex].Text, y.SubItems[columnIndex].Text));
     }
     if (columnIndex == 6)
     {
         return
             (DateTime.Compare(((IMaintainable)x.Tag).ApproximateDate,
                               ((IMaintainable)y.Tag).ApproximateDate));
     }
     return(String.Compare(x.SubItems[columnIndex].Text, y.SubItems[columnIndex].Text));
 }