Hi. I'm using the JavaScript SDK and when I sort results based on a subfield, if I don't specify a "size" greater than or equal to total number of records, some are omitted and not returned. Is this a bug? How can this be fixed without hard coding the size?
For example:
[
{
title: "Video 1",
category: {
name: "Category 2"
}
},
{
title: "Video 3",
category: {
name: "Category 1"
}
},
{
title: "Video 2",
category: {
name: "Category 2"
}
},
]
Sorting based on "category.name" without specifying size, returns:
[
{
title: "Video 3",
category: {
name: "Category 1"
}
},
{
title: "Video 1",
category: {
name: "Category 2"
}
},
]
Thanks!