Implement descendingByRetweet and helper functions