|
|
@ -23,20 +23,7 @@ const TaskListItem = React.memo((_props: any) => {
|
|
|
|
|
|
|
|
|
|
|
|
const sortSelector = createSelector(
|
|
|
|
const sortSelector = createSelector(
|
|
|
|
(entries: TaskType[]) => entries,
|
|
|
|
(entries: TaskType[]) => entries,
|
|
|
|
(entries) => {
|
|
|
|
(entries) => entries.sort((a, b) => a.title.localeCompare(b.title))
|
|
|
|
return entries.sort((_a, _b) => {
|
|
|
|
|
|
|
|
const a = _a.title;
|
|
|
|
|
|
|
|
const b = _b.title;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (a < b) {
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
} else if (a > b) {
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
class TaskList extends React.PureComponent {
|
|
|
|
class TaskList extends React.PureComponent {
|
|
|
|