Using avg_risk as sort criteria when predation buttion is clicked