g.V()
.hasLabel("profile")
.order()
.by("date", gremlin.process.order.asc); // at this point we have the whole list
.range(indexOf(id=K), indexOf(id=K) + 3) // this is the hiccup,
// how to find indexOf(id=K) in the sorted result
.toList()
g.V()
.hasLabel("profile")
.order()
.by("date", gremlin.process.order.asc); // at this point we have the whole list
.range(indexOf(id=K), indexOf(id=K) + 3) // this is the hiccup,
// how to find indexOf(id=K) in the sorted result
.toList()