Blog
Sort List In Groovy
31 Aug, 14

Sort List In Groovy

If we have a simple list like [code]List list = [4, 2, 9, 6, 7, 8, 2][/code] 1 [code]List list = [4, 2, 9, 6, 7, 8, 2][/code] We can easily sort this list using [code]assert list.sort() == [2, 2, 4, 6, 7, 8, 9][/code] 1 [code]assert list.sort() == [2, 2, 4, 6, 7, 8,...