Yes, it is possible in cities. It will take 2 hours, it will work if the directory is associated with new mail.
There is a second option: when you enter the full name of the city, this name will become the first in the list. For example, look for Kyo, shows how it is now. Looking for Kyiv, will show Kyiv in the first place and the rest of the city of Brovary (Kyiv region) and so on will go further. I do not know how it will be more convenient for you, so I offer all the options.
For departments, please reset the order, where you made the screen
https://prnt.sc/utg08g so that I can see what kind of departments are there and in what format they are recorded. The new mail has problems with this, I have seen about a dozen different formats for recording the branch number, branch name, etc. - up to the fact that in the 99th branch there will be a space after the number and in the 97th semicolon ...