|The obvious error is that you're trying to pass the non-generic
ArrayList class to a parameter which expects the generic
IEnumerable<T> interface, and trying to assign an
IEnumerable<T> to an
ArrayList doesn't implement
IEnumerable<T>, because it pre-dates generics. Change the variables:
List<Record> UnsortedRecords = new List<Record>();
IEnumerable<Record> SortedRecords = SortRecords(UnsortedRecords);
With that change in place, your code should work. If you're still getting compiler errors, then post them here.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."