add sorting by platform first

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-12-13 10:06:26 +01:00
parent 749b946fd2
commit 1cdf5ae8c2
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class Builds {
async getBuilds (pr) { async getBuilds (pr) {
const builds = await this.builds.chain() const builds = await this.builds.chain()
.find({pr}) .find({pr})
.simplesort('platform')
.simplesort('id') .simplesort('id')
.data() .data()
/* strip the $loki attribute */ /* strip the $loki attribute */