Skip to content

Instantly share code, notes, and snippets.

@ozzimpact
Last active February 17, 2020 08:24
Show Gist options
  • Save ozzimpact/aae7c16b1499df9aba1f2d3ea830e8ad to your computer and use it in GitHub Desktop.
Save ozzimpact/aae7c16b1499df9aba1f2d3ea830e8ad to your computer and use it in GitHub Desktop.
/// Doc 1
{
"id": 1,
"field1": "value1",
"field2": "value2",
"arrayField": [
{
"complexSortField": 10,
"complexField": "complexValue"
},
{
"complexSortField": 1000,
"complexField": "complexValue2"
},
{
"complexSortField": 500,
"complexField": "complexValue3"
}
]
}
/// Doc 2
{
"id": 2,
"field1": "value1",
"field2": "value2",
"arrayField": [
{
"complexSortField": 1,
"complexField": "complexValue"
},
{
"complexSortField": 99999,
"complexField": "complexValue2"
},
{
"complexSortField": 100,
"complexField": "complexValue3"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment