Re: Sorting dicts inside dicts

2010-07-03 Thread Eli Bendersky
On Sat, Jul 3, 2010 at 03:34, MRAB wrote: > abhijeet thatte wrote: > >> Hi, >> I have a huge dict structure like below: >> >> /*{'module':{'reg_dict_0':{'name':'abc','reg_addr':'2004'},'reg_dict_1':{'name':'xyz','reg_addr':'2002'},'reg_dict_2':{'name':'pqr','reg_addr':'2008'}}*/ >> >> Module dict

Re: Sorting dicts inside dicts

2010-07-02 Thread MRAB
abhijeet thatte wrote: Hi, I have a huge dict structure like below: /*{'module':{'reg_dict_0':{'name':'abc','reg_addr':'2004'},'reg_dict_1':{'name':'xyz','reg_addr':'2002'},'reg_dict_2':{'name':'pqr','reg_addr':'2008'}}*/ Module dict and reg_dicts contain many elements than shown. I want to so

Sorting dicts inside dicts

2010-07-02 Thread abhijeet thatte
Hi, I have a huge dict structure like below: * {'module':{'reg_dict_0':{'name':'abc','reg_addr':'2004'},'reg_dict_1':{'name':'xyz','reg_addr':'2002'},'reg_dict_2':{'name':'pqr','reg_addr':'2008'}} * Module dict and reg_dicts contain many elements than shown. I want to sort this 'module' dictionar