write_CALIB_MEAS_files: Sorting bugfix, clean-up, faster
write_CALIB_MEAS_files: Sorting bugfix, clean-up, faster

Bug fix: Sorts INDEX.TAB files.
Should not produce erroneous additional calibration files.

Now generates calibration files for every block of macro 104 (including cold calibrations).
Sped up the reading of files.
Clean-up and rewriting of some code.
Much old code left commented away.

frejon/Lapdog_GIT,frejon/Lapdog_GIT,irfu/Lapdog_GIT,irfu/Lapdog_GIT