Haystack length is now considered when sorting