sort by created time instead of platform

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-12-14 00:40:16 +01:00
parent 606214c44d
commit 775c850005
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ class Builds {
buildsSort (o1, o2) {
/* sort first by build ID, then by platform */
if (o1.id === o2.id) {
if (o1.platform > o2.platform) return 1;
if (o1.platform < o2.platform) return -1;
if (o1.meta.created > o2.meta.created) return 1;
if (o1.meta.created < o2.meta.created) return -1;
}
if (o1.id > o2.id) return 1;
if (o1.id < o2.id) return -1;