mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
add sort to strings
This commit is contained in:
@@ -78,6 +78,10 @@ func compare(a, b any) (bool, error) {
|
||||
return anyToBool(resp), nil
|
||||
}
|
||||
}
|
||||
} else if x, ok := b.(byte); ok {
|
||||
if y, ok := a.(byte); ok {
|
||||
return y < x, nil
|
||||
}
|
||||
}
|
||||
return false, fmt.Errorf("cannot compare %s to %s", typeof(a), typeof(b))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user