Sort by length of an array

Has anybody got a chance to look into this??