Skip to content

Commit

Permalink
Sort RecordList items in REVERSE chronological order, not FORWARD
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagedman committed Nov 6, 2022
1 parent c48ad35 commit 788030e
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 788030e

Please sign in to comment.