Swap first and last name in contacts As I could not see SIM card contacts in my contacts app, I just imported all contacts (well over a hundred items) from my SIM card to Google account. 

On my SIM, my contacts were stored as Last- First-name (for sorting). And all this was imported, but Google assumes it's in First- Lastname format. 

I need some way to fix this, as this issue messes sorting contacts - some are by first, some by last name. I don't want to go and fix all of those by hand, as it is well over a hundred contacts. 

I am using Cyanogen based on Lollipop 5.1 (OnePlus One)
Note: Please take a backup of all your Google contacts using the old Google contacts website either as a Google .csv file or .vcf format before trying this and use an app like Super Backup : SMS &amp; Contacts for exporting your phone contacts just in case.

As I've already mentioned in my comments you can try this,


  First take a backup of all your google contacts(Export as ->Google
  .csv). Then download the Outlook .csv export and replace the First
  name column with the Last name fields and vice versa using Microsoft
  Excel. Import the .csv again to your Google account and check if
  the sorting is they way you wanted. (Last-First-name).


Alternatively you can also try this google forum post (if the above doesn't work),


  
  Go to contacts
  Select All
  Export to a Google csv format file
  BACKUP that file !!!!!! &lt;- This is the most important step of the process!
  Open the csv file you have just created using Excel (maybe there are other tools - that's what I used)
  Create a new sheet (call it temp)
  Copy the first column from sheet "Contacts" to sheet "temp" (Column Name: "Name")
  In the "temp" sheet, select the only column (name) and go to Data->Text to Colums->Delimited->Next->space->next->finish
  At this point the names and family names should appear in different columns
  Check that there are no people w/ more than 2 names.
    If so, you will need to decide where to put the 3rd string so you stay w/ 2 columns only.
  In Cell C1, write down "Name"
  In Cell C2, write down the following:   =CONCATENATE(B2," ", A2)
  Copy this field to all cells in Column C
     Now Column C should be filled with all names in the form of "Family Given".
  Copy column C in sheet "temp" and paste it with Edit->Paste Special->Paste->Values to Column A in sheet "contacts".
  Delete "temp" sheet
  Save the file w/ a new name (newContacts)
  Back to Gmail, delete all the contacts (not before you are sure you've saved that first file!!!!!)
  Import the new CSV file.
  


The OP of the above message said it worked for him very well.