diff --git a/src/client/api/APICollective.js b/src/client/api/APICollective.js index 53d52132..99b6d3b4 100644 --- a/src/client/api/APICollective.js +++ b/src/client/api/APICollective.js @@ -1,8 +1,9 @@ import EndPoint from './EndPoint'; export default class APICollective extends EndPoint { - collective() { + collective(sort=null) { let url = '/collective'; + if(sort) url = `/collective?sort=${sort.join(',')}`; return this.request.get(url, {cache: true}); } } \ No newline at end of file