<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def upd_data(self, *args):
 """Update to match new entity data"""

        data = [self.munge(k, v) for k, v in self.iter_data()]
        self.data = sorted(data, key=lambda d: d['key'])