I have a list of words in a dropdown and I have a single word that is looking for a suiting partner(user is choosing it)
To make this easier for the user(because the list can be very long and the porcess has to be fast) I want to give a possible option.

I already had a look how i van change the selected word.

I want to find the alphabetically "nearest" option but i have no idear how i could find out which word is the nearest neigbore....

I already googled with all words I could think of to get a solution but I couldn´t find something.

Does someone have an idear how i can do it?