summaryrefslogtreecommitdiff
path: root/dealconvert/formats
diff options
context:
space:
mode:
Diffstat (limited to 'dealconvert/formats')
-rw-r--r--dealconvert/formats/pbn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dealconvert/formats/pbn.py b/dealconvert/formats/pbn.py
index f1d3042..2f3be71 100644
--- a/dealconvert/formats/pbn.py
+++ b/dealconvert/formats/pbn.py
@@ -88,7 +88,7 @@ class PBNFormat(DealFormat):
return result
def output_content(self, out_file, dealset):
- for board in dealset:
+ for board in sorted(dealset, key=lambda d:d.number):
out_file.write('[Event "%s"]\r\n' % (board.event))
out_file.write('[Board "%d"]\r\n' % (board.number))
out_file.write('[Dealer "%s"]\r\n' % (