I think the first priority should be doubling. Secondly LHBfication.
Thirdly Electrification.
Electrification is a costly affair. Production of electricity at powerhouses and supplying is less efficient than diesel.
Electrification of only high traffic routes is required. Not each and every route which indian railways is actually making losses.