public void sort() { if (atoz.IsChecked.Value && atoz_order != null) atoz_order(); if (recent.IsChecked.Value && recent_order != null) recent_order(); if (top.IsChecked.Value && top_order != null) top_order(); }