[Typeahead] added "sortByLength" option