fix bug on keepOrder with jquery version < 1.9