 
     skip   ?= 0
     limit  ?= 20
-
-    if sort
-      orderBy = Object.keys(sort)[0]
-      orderByQuery = @getOrderByQuery orderBy
-    else
-      orderByQuery = ''
 
     query = """
         START  group=node:koding("id:#{groupId}")
         MATCH  group-[r:member]->members-[:follower]->currentUser
         WHERE currentUser.id = "#{currentUserId}"
         RETURN members, r
-        ORDER BY #{orderByQuery} DESC
+        #{@generateOrderByQuery sort}
         SKIP #{skip}
         LIMIT #{limit}
         """

    skip   ?= 0
    limit  ?= 20

    if sort
      orderBy = Object.keys(sort)[0]
      orderByQuery = @getOrderByQuery orderBy
    else
      orderByQuery = ''

    query = """
      START  group=node:koding("id:#{groupId}")
      MATCH  group-[r:member]->members
      return members
      ORDER BY #{orderByQuery} DESC
      skip #{skip}
      limit #{limit}
      """

    skip   ?= 0
    limit  ?= 20

    query = """
        START group=node:koding("id:#{groupId}")
        MATCH group-[r:member]->members<-[:follower]-currentUser
        WHERE currentUser.id = "#{currentUserId}"
        RETURN members, r
        #{@generateOrderByQuery sort}
        SKIP #{skip}
        LIMIT #{limit}
        """
