How to cayley sort


#1

I have a trouble , How can I sort my cayley response result ?
ex.
g.V(“cool_person”).In(“status”).All()

result:
{
“result”: [
{
“id”: “1”
},
{
“id”: “3”
},
{
“id”: “2”
}
]
}

to

result:
{
“result”: [
{
“id”: “1”
},
{
“id”: “2”
},
{
“id”: “3”
}
]
}


#2

We do not expose any sorting yet. It should be done from JS/client side for now.


#3

Thanks , js/client sort that mean it must in query after ? I need query and sort return result,Because It is very big relation data.


#4

It can be done in Gremlin (server-side), but in any case it will be inefficient for now.

We will add indices for sorting after one major change that we are discussing right now.


#6

Any news on that ?