|
|
@ -14,11 +14,11 @@ describe('OrderBy', function () {
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
const data = orderBy(options, [
|
|
|
|
const data = orderBy(options, [
|
|
|
|
{ index: 0 },
|
|
|
|
|
|
|
|
{ index: 1 },
|
|
|
|
|
|
|
|
{ index: 2 },
|
|
|
|
|
|
|
|
{ index: 3 },
|
|
|
|
{ index: 3 },
|
|
|
|
{ index: 4 }
|
|
|
|
{ index: 1 },
|
|
|
|
|
|
|
|
{ index: 0 },
|
|
|
|
|
|
|
|
{ index: 4 },
|
|
|
|
|
|
|
|
{ index: 2 }
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
assert.equal(data[0].index, 4)
|
|
|
|
assert.equal(data[0].index, 4)
|
|
|
@ -31,11 +31,11 @@ describe('OrderBy', function () {
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
const data = orderBy(options, [
|
|
|
|
const data = orderBy(options, [
|
|
|
|
{ index: 0 },
|
|
|
|
|
|
|
|
{ index: 1 },
|
|
|
|
|
|
|
|
{ index: 2 },
|
|
|
|
|
|
|
|
{ index: 3 },
|
|
|
|
{ index: 3 },
|
|
|
|
{ index: 4 }
|
|
|
|
{ index: 1 },
|
|
|
|
|
|
|
|
{ index: 0 },
|
|
|
|
|
|
|
|
{ index: 4 },
|
|
|
|
|
|
|
|
{ index: 2 }
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
assert.equal(data[0].index, 0)
|
|
|
|
assert.equal(data[0].index, 0)
|
|
|
|