Adding Custom Sorting filters for BBPress

Hello,
For my forum I am looking to add a filter to sort topics by no responses, is there a plugin or a piece of code out there to accomplish my needs?

Thanks.