take, take_while, to_a and sort_by