autocomplete separated words

autocomplete separated words

I have an autocomplete input with an array of elements with the following format citi-state, for example miami-florida

Id like to permit the user to find the city and state in different orders, for ecample:
miami fl
florida mi
How do I configure the autocomplete for this?

Thanks a lot, Programador Ari