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)
Last updated 1 year ago