(#149) made autocomplete sort