If you are using SwiftyContacts, you can pass in the sort option in the fetchContacts(..) request, see below:
import SwiftyContacts
fetchContacts(ContactsSortorder: .givenName) { (result) in
switch result {
case .success(let contacts):
print(contacts)
case .failure(let error):
print(error)
}
}