From 75faf9ffc76e25d66a38be3da3b3546239b69f20 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Fri, 12 Feb 2010 10:07:51 -0600 Subject: [PATCH] Bugfix for issue sorting. Issues sorted by ids as Integers, not Strings --- pit.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pit.groovy b/pit.groovy index a2e879e..58b3c90 100755 --- a/pit.groovy +++ b/pit.groovy @@ -99,7 +99,7 @@ class Project { } public void each(Filter filter = null, Closure c) { - def is = filter?.issueSorter ?: { it.id } + def is = filter?.issueSorter ?: { it.id.toInteger() } def ps = filter?.projectSorter ?: { it.name } for (issue in issues.values().sort(is)) {