Hey all, I’m curious to exactly how tableView.reloadData() works in sorting the lists and why it allows us to remove tableView.insertRows. I believe I have a general understanding of how it works but want to make sure it is correct.
My understanding is that we append to the list, order the list, then reload the view. Reloading the view causes the numberOfRows method to return 1 more than before, then cellForRowAt creates all the cells over again including the new one but this time in sorted order.