mirror of https://gitee.com/bigwinds/arangodb
Reverted ordering chance in Object sort function.
This commit is contained in:
parent
59f41f01ba
commit
0d623b58bb
|
@ -662,7 +662,7 @@ function ahuacatlFunctionsTestSuite () {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
testUnique5 : function () {
|
testUnique5 : function () {
|
||||||
var expected = [ { "over" : "the dog", "the fox" : "jumped" }, { "the fox" : "jumped" }, { "the fox" : "jumped over" } ];
|
var expected = [ { "the fox" : "jumped" }, { "the fox" : "jumped over" }, { "over" : "the dog", "the fox" : "jumped" } ];
|
||||||
|
|
||||||
var actual = getQueryResults("FOR i IN UNIQUE([ { \"the fox\" : \"jumped\" }, { \"the fox\" : \"jumped over\" }, { \"the fox\" : \"jumped\", \"over\" : \"the dog\" }, { \"over\" : \"the dog\", \"the fox\" : \"jumped\" } ]) SORT i RETURN i");
|
var actual = getQueryResults("FOR i IN UNIQUE([ { \"the fox\" : \"jumped\" }, { \"the fox\" : \"jumped over\" }, { \"the fox\" : \"jumped\", \"over\" : \"the dog\" }, { \"over\" : \"the dog\", \"the fox\" : \"jumped\" } ]) SORT i RETURN i");
|
||||||
assertEqual(expected, actual);
|
assertEqual(expected, actual);
|
||||||
|
|
Loading…
Reference in New Issue