def map_aliases_to_device_objects(self):
all_devices = self.get_all_devices_in_portal()<EOL>for dev_o in all_devices:<EOL><INDENT>dev_o['<STR_LIT>'] = self.get_portal_by_name(<EOL>self.portal_name()<EOL>)[<NUM_LIT:2>][<NUM_LIT:1>]['<STR_LIT:info>']['<STR_LIT>'][ dev_o['<STR_LIT>'] ]<EOL><DEDENT>return all_devices<EOL>
A device object knows its rid, but not its alias.
A portal object knows its device rids and aliases.

This function adds an 'portals_aliases' key to all of the 
device objects so they can be sorted by alias.