1
0
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:
3timeslazy
2018-10-23 01:24:53 +03:00
committed by Tim Voronov
parent e9e33263f3
commit ebea64da37
6 changed files with 361 additions and 14 deletions

View File

@ -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)