diff --git a/img/tui.png b/img/tui.png index ca46c6a..69fd6a2 100755 Binary files a/img/tui.png and b/img/tui.png differ diff --git a/pyproject.toml b/pyproject.toml index 1c2432a..71de3b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "lottery-tui" -version = "0.2.1" +version = "0.2.2" description = "A terminal user interface for lottery games." authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }] dependencies = ["textual>=8.0.0"] diff --git a/src/lottery_tui/lottery.py b/src/lottery_tui/lottery.py index 26d3b58..d8c58f3 100644 --- a/src/lottery_tui/lottery.py +++ b/src/lottery_tui/lottery.py @@ -12,7 +12,7 @@ class Result(NamedTuple): def __str__(self) -> str: """Return a string representation of the lottery result.""" - out = f'Numbers: {", ".join(str(n) for n in self.numbers)}' + out = f'Numbers: {", ".join(str(n) for n in sorted(self.numbers))}' if self.bonus: match self.kind: case 'EuroMillions': @@ -23,7 +23,7 @@ class Result(NamedTuple): bonus_name = 'Thunderball' case _: bonus_name = 'Bonus Numbers' - out += f'\n{bonus_name}: {", ".join(str(n) for n in self.bonus)}' + out += f'\n{bonus_name}: {", ".join(str(n) for n in sorted(self.bonus))}' return out