This program summarizes the coefficients from DIRAC (http://diracprogram.org) output file that the .ANALYZE option and *PRIVEC and .VECPRI options in **ANALYZE section are used. (c.f. http://www.diracprogram.org/doc/release-23/manual/analyze/privec.html)
問題点、やりたいこと DIRACの *PRIVECは既約表現の順、エネルギー順の優先順位で出力される 解析する際は既約表現を無視したエネルギー順で見たいこともある
解決策
https://qiita.com/morifuji551/items/73e811f775a3444d3b2c によるとclassのインスタンスをlistのオブジェクトとして格納したり、appendしたりできるらしい
したがって 各MOごとのデータをlistの要素として格納し、エネルギー順ソートをした後listをループさせて出力すればよい