Sort unified list by count of flags from all tracked attestor groups
Closed this issue · 0 comments
divine-comedian commented
We will need to be able to sort the response given by the list of all projects should be the total count of FLAGS made by all tracked attester groups in ascending/descending order.
If a filter is applied to look for only certain attester groups this should be reflected as well.
If a filter is applied to look for only projects from a certain platform this should be reflected.
For example
Project A
flags received
- Attester group a - 10
- attester goup b - 5
- attester group c - 7
- total vouches = 22
Project B
flags received
- Attester group a - 15
- attester goup b - 10
- attester group c - 15
- total vouches = 40
Project C
flags received
- Attester group a - 7
- attester goup b - 5
- attester group c - 3
- total vouches = 15
So the order of responses should be given in descending order as projects B, A, C