Implemented function to generate a league file from an ord struct