VO
func sortingUpButton(_ sender: UIBarButtonItem) {
userInformations = userInformations.sorted(by: { $0.dateOfBirtdh.toDate()! < $1.dateOfBirtdh.toDate()!})
tableView.reloadData()
}Size: a a a
VO
func sortingUpButton(_ sender: UIBarButtonItem) {
userInformations = userInformations.sorted(by: { $0.dateOfBirtdh.toDate()! < $1.dateOfBirtdh.toDate()!})
tableView.reloadData()
}В
VO
В
VO
В
func sortingDownButton(_ sender: UIBarButtonItem) {
sortingInformationLabel.isHidden = false
userInformations = userInformations.sorted(by: { $0.dateOfBirtdh.toDate()! > $1.dateOfBirtdh.toDate()!})
DispatchQueue.main.async {
self.tableView.reloadData()
}
}В
VO
В
В
func sortingDownButton(_ sender: UIBarButtonItem) {
userInformations = userInformations.sorted(by: { $0.dateOfBirtdh.toDate()! > $1.dateOfBirtdh.toDate()!})
DispatchQueue.main.async {
self.tableView.reloadData()
self.sortingInformationLabel.isHidden = false
}В