Groovy web console

subscribe to the feed Subscribe
to this
site
Groovy Sort (via #groovywebconsole)
tweet this snippet Tweet
this
script

Groovy Sort

Published 2 weeks ago by dmahapatro with tags groovy
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def list = ['f03', 'f10', 'f01', 'f12', 'f2', 'f34', 'f22','f20','f50', 'f5', 'f09']
list.sort { it[1..-1] as int }