Fixed a bug in the eigenvalue sorting. However, internal modes are currently a mess…switching to other computer.