1.1 --- a/src/main/kotlin/de/uapcore/lightpit/types/IssueStatusPhase.kt Sat Jun 04 18:29:58 2022 +0200 1.2 +++ b/src/main/kotlin/de/uapcore/lightpit/types/IssueStatusPhase.kt Sat Jun 04 18:35:45 2022 +0200 1.3 @@ -25,10 +25,13 @@ 1.4 1.5 package de.uapcore.lightpit.types 1.6 1.7 -data class IssueStatusPhase(val number: Int) { 1.8 +data class IssueStatusPhase(val number: Int): Comparable<IssueStatusPhase> { 1.9 companion object { 1.10 val Open = IssueStatusPhase(0) 1.11 val WorkInProgress = IssueStatusPhase(1) 1.12 val Done = IssueStatusPhase(2) 1.13 } 1.14 + 1.15 + override fun compareTo(other: IssueStatusPhase): Int = 1.16 + number.compareTo(other.number) 1.17 } 1.18 \ No newline at end of file