Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6878 from matrix-org/t3chguy/fix/19192
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Sep 29, 2021
2 parents f7fba91 + c0b6c00 commit 7e47211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/SpaceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const validOrder = (order: string): string | undefined => {

// For sorting space children using a validated `order`, `m.room.create`'s `origin_server_ts`, `room_id`
export const getChildOrder = (order: string, creationTs: number, roomId: string): Array<Many<ListIteratee<any>>> => {
return [validOrder(order), creationTs, roomId];
return [validOrder(order) ?? NaN, creationTs, roomId]; // NaN has lodash sort it at the end in asc
};

const getRoomFn: FetchRoomFn = (room: Room) => {
Expand Down

0 comments on commit 7e47211

Please sign in to comment.