namespace MeetTheTeacher.Model.Comparison; /// /// A comparer which allows sorting instances by their name in either ascending or descending /// order /// /// /// public sealed class ByNameComparer : ComparerBase, IComparer { /// /// Creates a new instance of configured to sort in ascending or descending order /// /// Flag indicating if items should be sorted in ascending order; descending if false public ByNameComparer(bool ascending) : base(ascending) { } public int Compare(Teacher? x, Teacher? y) { // TODO return -1; } }