Groovy web console

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

Sort string

Published 5 months ago by ibrahim
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String [] ids = ["T00004", "T00001", "T00002", "T10", "T00010"]
println "before sort\t${ids}"
Arrays.sort(ids)
println "after sort\t${ids}"