How to get sorted struct into another struct/dictionary using swift3?

I'm trying to create alphabetic sections in my TableView, so far I'v managed to get my database into struct and get the fist letter of every name from my database and sort it for the section header.
My problem is that I don't get the sorted variable into the another struct and show it in the table.