|
|
|
@ -1361,9 +1361,9 @@ class Tournament : ModelObject, Storable { |
|
|
|
private func _defaultSorting() -> [MySortDescriptor<TeamRegistration>] { |
|
|
|
private func _defaultSorting() -> [MySortDescriptor<TeamRegistration>] { |
|
|
|
switch teamSorting { |
|
|
|
switch teamSorting { |
|
|
|
case .rank: |
|
|
|
case .rank: |
|
|
|
[.keyPath(\TeamRegistration.initialWeight), .keyPath(\TeamRegistration.registrationDate!), .keyPath(\.canonicalName)] |
|
|
|
[.keyPath(\TeamRegistration.initialWeight), .keyPath(\TeamRegistration.registrationDate!)] |
|
|
|
case .inscriptionDate: |
|
|
|
case .inscriptionDate: |
|
|
|
[.keyPath(\TeamRegistration.registrationDate!), .keyPath(\TeamRegistration.initialWeight), .keyPath(\.canonicalName)] |
|
|
|
[.keyPath(\TeamRegistration.registrationDate!), .keyPath(\TeamRegistration.initialWeight)] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1373,7 +1373,7 @@ class Tournament : ModelObject, Storable { |
|
|
|
&& federalTournamentAge == build.age |
|
|
|
&& federalTournamentAge == build.age |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private let _currentSelectionSorting : [MySortDescriptor<TeamRegistration>] = [.keyPath(\.weight), .keyPath(\.registrationDate!), .keyPath(\.canonicalName)] |
|
|
|
private let _currentSelectionSorting : [MySortDescriptor<TeamRegistration>] = [.keyPath(\.weight), .keyPath(\.registrationDate!)] |
|
|
|
|
|
|
|
|
|
|
|
override func deleteDependencies() throws { |
|
|
|
override func deleteDependencies() throws { |
|
|
|
try Store.main.deleteDependencies(items: self.unsortedTeams()) |
|
|
|
try Store.main.deleteDependencies(items: self.unsortedTeams()) |
|
|
|
|