Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace Problem_10.Custom_List_Iterator
- {
- public static class Sorter
- {
- public static CustomList<T> Sort<T>(CustomList<T> customList) where T : IComparable<T>
- {
- var sorted = customList.GetAll().OrderBy(x => x).ToList();
- customList.Sort(sorted);
- return customList;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement