mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 04:33:42 +08:00
[offers][fix] sort profiles reverse chronological order
This commit is contained in:
@ -678,6 +678,8 @@ export const getUserProfileResponseMapper = (
|
|||||||
profileName: profile.profileName,
|
profileName: profile.profileName,
|
||||||
token: profile.editToken,
|
token: profile.editToken,
|
||||||
};
|
};
|
||||||
|
}).sort((a, b) => {
|
||||||
|
return b.createdAt > a.createdAt ? 1 : -1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user