12 lines
360 B
Ziran
12 lines
360 B
Ziran
TableTextOrder :: (left: string, right: string) -> s32 {
|
|
index: s64
|
|
while index < left.count && index < right.count {
|
|
if left[index] < right[index] { return -1 }
|
|
if left[index] > right[index] { return 1 }
|
|
index += 1
|
|
}
|
|
if left.count < right.count { return -1 }
|
|
if left.count > right.count { return 1 }
|
|
return 0
|
|
}
|