Skip to content

Commit

Permalink
[FIX] Sort RecordList items in REVERSE chronological order, not FORWA…
Browse files Browse the repository at this point in the history
…RD (#27201)

Fixes #27185
  • Loading branch information
nmagedman authored and MartinSchoeler committed Nov 28, 2022
1 parent 85c85d1 commit b3459e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/client/lib/lists/RecordList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class RecordList<T extends IRocketChatRecord> extends Emitter {
}

protected compare(a: T, b: T): number {
return a._updatedAt.getTime() - b._updatedAt.getTime();
return b._updatedAt.getTime() - a._updatedAt.getTime();
}

public get phase(): AsyncStatePhase {
Expand Down

0 comments on commit b3459e1

Please sign in to comment.