Avoid double ToList() in InMemoryTableStream
Avoid using ToList() in sort function since it'll be done in the GetData() function