groovy :000> list.sort{a,b-> a.size() <=> b.size()} // Sorting with length of string in ascending order ===> [a, ab, abc, abcd]
確定! 回上一頁