generate sequential FID when sorting results by baseline distance (removed evil debug printf)