kopia lustrzana https://gitlab.com/mysocialportal/relatica
Make timeline sorting post ID ranked not date since post order is by when received at server/interaction created not date
rodzic
4ceaabe02b
commit
5900ce1891
|
@ -35,7 +35,10 @@ class Timeline {
|
|||
_posts.clear();
|
||||
_posts.addAll(_postsById.values);
|
||||
_posts.sort((p1, p2) {
|
||||
return p2.entry.backdatedTimestamp.compareTo(p1.entry.backdatedTimestamp);
|
||||
final id1 = num.parse(p1.id);
|
||||
final id2 = num.parse(p2.id);
|
||||
return id2.compareTo(id1);
|
||||
// return p2.entry.backdatedTimestamp.compareTo(p1.entry.backdatedTimestamp);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue