Fixes sorting when no filter is defined by storing field data.