Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. namespace Problem_10.Custom_List_Iterator
  5. {
  6. public static class Sorter
  7. {
  8. public static CustomList<T> Sort<T>(CustomList<T> customList) where T : IComparable<T>
  9. {
  10. var sorted = customList.GetAll().OrderBy(x => x).ToList();
  11. customList.Sort(sorted);
  12. return customList;
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement