用户生日、性别、职业、地址、ntrp水平 Picker编辑
This commit is contained in:
@@ -133,9 +133,8 @@ const OtherUserPage: React.FC = () => {
|
||||
active_tab
|
||||
);
|
||||
const sorted_games = games_data.sort((a, b) => {
|
||||
return new Date(b.start_time.replace(/\s/, 'T')).getTime() - new Date(a.start_time.replace(/\s/, 'T')).getTime();
|
||||
return new Date(a.original_start_time.replace(/\s/, 'T')).getTime() - new Date(b.original_start_time.replace(/\s/, 'T')).getTime();
|
||||
});
|
||||
console.log('xxxxxxxxxxxxxxxxxx', sorted_games)
|
||||
const { notEndGames, finishedGames } = classifyGameRecords(sorted_games);
|
||||
setGameRecords(notEndGames);
|
||||
setEndedGameRecords(finishedGames);
|
||||
|
||||
Reference in New Issue
Block a user