Sort signatures by length