fixed sorting by length