it should now preserve the sorting