Skip to content

Commit

Permalink
chore: sort list item by createTime
Browse files Browse the repository at this point in the history
  • Loading branch information
orzyyyy committed Dec 5, 2019
1 parent 7dd39b3 commit 0ea85d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/MainPageDataController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const MainPageDataController = () => {
setDataSource(
dataSource
.filter((item: MappingProps) => item.visible !== false)
.sort((a: any, b: any) => b.modifyTime - a.modifyTime),
.sort((a: any, b: any) => b.createTime - a.createTime),
);
};

Expand Down

0 comments on commit 0ea85d8

Please sign in to comment.