Fixing the ordering problem in complexObject. DHH-448