pub fn sort_players_by_mass(&mut self) {
        if self.players.len() > 0 {
            for i in 0..(self.players.len() - 1) {
                for j in i + 1..self.players.len() {
                    if self.players[i].mass() < self.players[j].mass() {
                        self.players.swap(i, j);
                    }
                }
            }
        }
    }
/// Sort players from biggest to smallest
Sort players from biggest to smallest
Sort players from biggest to smallest
pub fn sort_players_by_mass(&mut self) {
        if self.players.len() > 0 {
            for i in 0..(self.players.len() - 1) {
                for j in i + 1..self.players.len() {
                    if self.players[i].mass() < self.players[j].mass() {
                        self.players.swap(i, j);
                    }
                }
            }
        }
    }
pub fn sort_players_by_mass ( & mut self ) { if self . players . len ( ) > 0 { for i in 0 .. ( self . players . len ( ) - 1 ) { for j in i + 1 .. self . players . len ( ) { if self . players [ i ] . mass ( ) < self . players [ j ] . mass ( ) { self . players . swap ( i , j ) ; } } } } }
Sort players from biggest to smallest
Sort players from biggest to smallest
&mut self