Here it is noted that the sons – indicating that they all agreed to do this – did unto him, according as he commanded them. You get a hint here that the sons by now – they had been sometime in Egypt – were reconciled to Joseph, and had repented of their deeds already, and had reformed their lives, those of them that had been wayward.