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