import strutils proc cmpS(a, b: string): int = result = 0 if a == b: return result if a.len != b.len: return cmp(a.len, b.len) for i in 0..