def mappings(self):
result = []<EOL>for m in self.maps:<EOL><INDENT>if isinstance(m, AnonMap):<EOL><INDENT>result.append((m.start, m.end, m.perms, <NUM_LIT:0>, '<STR_LIT>'))<EOL><DEDENT>elif isinstance(m, FileMap):<EOL><INDENT>result.append((m.start, m.end, m.perms, m._offset, m._filename))<EOL><DEDENT>else:<EOL><INDENT>result.append((m.start, m.end, m.perms, <NUM_LIT:0>, m.name))<EOL><DEDENT><DEDENT>return sorted(result)<EOL>
Returns a sorted list of all the mappings for this memory.

:return: a list of mappings.
:rtype: list