func (l *Lobby) gameInfos() []game.Info {
	infos := make([]game.Info, 0, len(l.games))
	for _, info := range l.games {
		infos = append(infos, info)
	}
	sort.Slice(infos, func(i, j int) bool {
		return infos[i].ID < infos[j].ID
	})
	return infos
}
// game infos gets the sorted game infos for the Lobby.
game infos gets the sorted game infos for the Lobby.
// game infos gets the sorted game infos for the Lobby .
func (l *Lobby) gameInfos() []game.Info {
	infos := make([]game.Info, 0, len(l.games))
	for _, info := range l.games {
		infos = append(infos, info)
	}
	sort.Slice(infos, func(i, j int) bool {
		return infos[i].ID < infos[j].ID
	})
	return infos
}
func ( l * Lobby ) gameInfos ( ) [ ] game . Info { infos := make ( [ ] game . Info , 0 , len ( l . games ) ) for _ , info := range l . games { infos = append ( infos , info ) } sort . Slice ( infos , func ( i , j int ) bool { return infos [ i ] . ID < infos [ j ] . ID } ) return infos }
game infos gets the sorted game infos for the Lobby.
game infos gets the sorted game infos for the Lobby .