Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.0-beta-4
-
None
-
None
-
WIN2k SP3, jdk1.4.2_04
Description
when using sort w/o () strange things happen
see result of the following script:
println "sort()..."
country = [ 'Canada', 'Austria', 'Brazil' ]
country.sort().each { println "Hello ${it}" }
println "sort..."
country2 = [ 'Canada', 'Austria', 'Brazil' ]
country2.sort.each { println "Hello ${it}" }
Output:
sort()...
Hello Austria
Hello Brazil
Hello Canada
sort...
Hello Canada
Hello Austria
Hello Austria
Hello Brazil