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

(Testing #9942 before merging)