mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-17 01:32:22 +02:00
Feature/#10 values (#128)
* added VALUES function * updated object.Compare
This commit is contained in:
@ -228,7 +228,7 @@ func (t *Array) Sort() *Array {
|
||||
copy(c, t.value)
|
||||
|
||||
sort.SliceStable(c, func(i, j int) bool {
|
||||
return c[i].Compare(c[j]) == 0
|
||||
return c[i].Compare(c[j]) == -1
|
||||
})
|
||||
|
||||
res := new(Array)
|
||||
|
Reference in New Issue
Block a user