Organizing 1D data