amaatouq / netwise

open source project to tackle the problem of long development cycles required to produce software to conduct multi-participant and real-time human experiments online.
1 stars 0 forks source link

Retrieving alters in sorted order #6

Closed amaatouq closed 6 years ago

amaatouq commented 6 years ago

In our current implementation of game.players.find(p => p._id === alterId) how would we sort the displayed list in terms of cumulativeScore for example?

npaton commented 6 years ago

Until we get better Network functions, maybe: _.sortBy(players, p => p.get("score"))

amaatouq commented 6 years ago

Makes sense to use this pure javascript approach until we add the Network functions.