sort fft and raw data