5 lines
144 B
Text
5 lines
144 B
Text
lengthCompare[a,b] := length[a] <=> length[b]
|
|
|
|
func = getFunction["lengthCompare", 2]
|
|
a = ["tree", "apple", "bee", "monkey", "z"]
|
|
sort[a, func]
|