remove sort by created

This commit is contained in:
Spectralitree 2021-01-06 13:11:02 +01:00
parent e0cb8fb95b
commit 19b250eaff

View File

@ -113,9 +113,6 @@ export default function Memberlist() {
} else if (sortBy === 'ID') { } else if (sortBy === 'ID') {
const sortMembers = filteredMembers.sort((a, b) => a.id.localeCompare(b.id)).slice(indexOfFirstMember, indexOfLastMember); const sortMembers = filteredMembers.sort((a, b) => a.id.localeCompare(b.id)).slice(indexOfFirstMember, indexOfLastMember);
setSortedMembers(sortMembers); 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]) }, [sortBy, filteredMembers, indexOfFirstMember, indexOfLastMember])
@ -176,7 +173,6 @@ export default function Memberlist() {
<option>name</option> <option>name</option>
<option>display name</option> <option>display name</option>
<option>ID</option> <option>ID</option>
<option>date created</option>
</BS.Form.Control> </BS.Form.Control>
</BS.InputGroup> </BS.InputGroup>
</BS.Form> </BS.Form>