A
Size: a a a
G
В
 func sortingUpButton(_ sender: UIBarButtonItem) {
        DispatchQueue.main.async {
            self.userInformations = self.userInformations.sorted(by: { $0.dateOfBirtdh.toDate()! < $1.dateOfBirtdh.toDate()! })
            self.tableView.reloadData()
        }
    }G
 func sortingUpButton(_ sender: UIBarButtonItem) {
        DispatchQueue.main.async {
            self.userInformations = self.userInformations.sorted(by: { $0.dateOfBirtdh.toDate()! < $1.dateOfBirtdh.toDate()! })
            self.tableView.reloadData()
        }
    }В
DispatchQueue.global (qos: .userInitiated)
.async {
// code after user initiated input
DispatchQueue.global (qos: .background)
.async {
// calculate here
DispatchQueue.main.async {
// draw here
}
}
}
В
В
G
AM
AM
G