mirror of
https://github.com/status-im/github-comment-manager.git
synced 2025-02-19 20:58:09 +00:00
sort by created time instead of platform
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
606214c44d
commit
775c850005
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user