commit while in the process getting ajax sorting to work