I'm trying to see if there is a way to sort contacts by Surname in EWS after they have already been imported into the contacts folder.
I had a member from this site assist me with some code to import a list of contacts using the ThreadJob Module. As an overview of what my code looks lie, you can please refer to this link: Contacts import using runspacepools
The modified code from the link above works great and it imports the contacts in half the time (originally took between 5-6 mins and afterwards between 2-3 mins). The new issue I am facing now is that since the import runs in different thread jobs it imports contacts out of order, so I'm curious if there is a easy way to tell Exchange to resort them by SurName? Any thoughts?
I am open to using EWS/EWS API/ Graph API, or any other method you can think of. I would need to sort this for all users mailboxes.
Thank you!