use sort(boolean, Comparator) because of GROOVY-6900

sort(Comparator) was removed.

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/job-dsl-plugin/Ffp3RwfrAKM/7gWVO4Sn7ywJ