without `.to_a` the sort dont work as we expect.