a sort by length method using .cycle