1
0
Fork 0

Reverted ordering chance in Object sort function.

This commit is contained in:
Michael Hackstein 2016-03-24 13:18:55 +01:00
parent 59f41f01ba
commit 0d623b58bb
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ function ahuacatlFunctionsTestSuite () {
////////////////////////////////////////////////////////////////////////////////
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");
assertEqual(expected, actual);