Fix model attenuation

I accidentally swapped a 2D array with a 1D array in the sorting subroutine, so things didn't work correctly for model_attenuation.f90. This corrects that issue.