System for ranking electrical grid failures