I have a tableview with data coming from the web. I load this data, I display my tableview and everything is good except one little thing;
the initial sort position is not refledted in the corresponding column header
If I click on a column after the table is loaded, the sort is done and the header of the column has the symbol of a sorted column
But when the table is initially loaded, no symbol appears
of course, I tried to put some instructions like:
let descriptorName = NSSortDescriptor(key: "nomlocataire", ascending: true)
tablesaisie.tableColumns[1].sortDescriptorPrototype = descriptorName
but no symbol appears on the corresponding header column
What did I missed?