SyntaxFix
Write A Post
Hire A Developer
Questions
def lst = ["A2", "A1", "k22", "A6", "a3", "a5", "A4", "A7"]; println lst.sort { a, b -> a.compareToIgnoreCase b }
This should be able to sort with case insensitive but I am not sure how to tackle the alphanumeric strings lists