Skip to content

Sort literal object without can@getSchema Symbol

Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 20 May 22:28
· 31 commits to master since this release

This fixes sorting literal objects which have not can@getSchema symbol for example:

var query = new BasicQuery({
		sort: "name"
	});
var items = [{id: 1, name: "Item 0"}, {id: 2, name: "Item 1"}];
query.index({id: 1, name: "Item 1"}, items); // -> 1

#47