added fermion state sorting upon initialization