fix ranking

(cherry picked from commit 3c0fa45153)
online_reg^2
Raz 11 months ago
parent 2cf955f378
commit afe7aedb29
  1. 2
      PadelClub/Data/TeamRegistration.swift

@ -466,7 +466,7 @@ final class TeamRegistration: ModelObject, Storable {
self.tournamentStore.playerRegistrations.filter { $0.teamRegistration == self.id }.sorted { (lhs, rhs) in
let predicates: [AreInIncreasingOrder] = [
{ $0.sex?.rawValue ?? 0 < $1.sex?.rawValue ?? 0 },
{ $0.rank ?? 0 < $1.rank ?? 0 },
{ $0.rank ?? Int.max < $1.rank ?? Int.max },
{ $0.lastName < $1.lastName},
{ $0.firstName < $1.firstName }
]

Loading…
Cancel
Save