Skip to content

Instantly share code, notes, and snippets.

View jonahaung's full-sized avatar

Aung Ko Min jonahaung

View GitHub Profile
func bigSorting(unsorted: [String]) -> [String] {
let strings = unsorted.sorted { (left, right) -> Bool in
if left.count > right.count {
return false
}
if left.count < right.count {
return true
}
if let l = Int(left), let r = Int(right) {