done but not perfect
add sorting to protect the clients who have higher weight not being able to be shown in higher rank