kakao / s2graph

This code base is retained for historical interest only, please visit Apache Incubator Repo for latest one
https://github.com/apache/incubator-s2graph
Other
250 stars 32 forks source link

Provide orderBy query option for sorting results by edge's property #158

Closed hsleep closed 8 years ago

hsleep commented 8 years ago

The results of getEdge operation always is sorted by the score and the timestamp descending order. If provide orderBy query option like groupBy option, client can determine query result's sorting order.

I suggest the query like below form.

{
  "orderBy": [
    {"score": "DESC"},
    {"timestamp": "ASC"}
  ],
  ...
}
SteamShon commented 8 years ago

@hsleep would be nice feature~! looking forward PR.