static public void SortByFhone(PhoneBook book) { ListSort.Sort(book, (client1, client2) => client1.foneNumber > client2.foneNumber); }
static public void SortByadress(PhoneBook book) { ListSort.Sort(book, (client1, client2) => string.Compare(client1.adress, client2.adress) < 0); }
static public void SortByLastName(PhoneBook book) { ListSort.Sort(book, (client1, client2) => string.Compare(client1.lastName, client2.lastName) < 0); }