Risk based ranking system for work prioritization