diff --git a/src/Components/ProfileList.js b/src/Components/ProfileList.js index 4f16d50f..873c41f7 100644 --- a/src/Components/ProfileList.js +++ b/src/Components/ProfileList.js @@ -113,9 +113,6 @@ export default function Memberlist() { } else if (sortBy === 'ID') { const sortMembers = filteredMembers.sort((a, b) => a.id.localeCompare(b.id)).slice(indexOfFirstMember, indexOfLastMember); setSortedMembers(sortMembers); - } else if (sortBy === 'date created') { - const sortMembers = filteredMembers.sort((a, b) => a.created.localeCompare(b.created)).slice(indexOfFirstMember, indexOfLastMember); - setSortedMembers(sortMembers); } }, [sortBy, filteredMembers, indexOfFirstMember, indexOfLastMember]) @@ -176,7 +173,6 @@ export default function Memberlist() { -