Sort using a custom comparator

func mycmp(a, b) { (b.len <=> a.len) || (a.lc <=> b.lc) }
var strings = %w(Here are some sample strings to be sorted)
var sorted = strings.sort(mycmp)