test(orderBy): add test cases for ordering array-like objects

Closes #10060