Sort IDL definitions in Perl, so in order in JSON
Sort IDL definitions in Perl, so in order in JSON

There's one difference between JSON files from the Perl parser and the
Python parser, namely Promise.idl.

This CL fixes it (by adding a sort), so the JSON is exactly the same.


The difference is b/c Perl lists definitions in the order of definition,
while Python lists them in alphabetical order.
The only case where these differ is Promise.idl, which has two callback
functions in non-alphabetical order.
They're in this order upstream, and this is allowed, hence not changing
the IDL file:
https://github.com/slightlyoff/Promises/blob/master/Promise.idl

The fix is to sort the definitions (within a type: callback functions,
enumerations, interfaces). Do this for each type of definition, for
consistency, though in practice this will generally be a nop (only 1 interface
and usually no enumerations or callback functions).

(We're *not* sorting interface members, as these need to appear in order,
due to overloading.)

Review URL: https://chromiumcodereview.appspot.com/19458004

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@154894 bbb929c8-8fbe-4397-9dbb-9b2b20218538

smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,modulexcite/blink,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,ondra-novak/blink,jtg-gg/blink,ondra-novak/blink,ondra-novak/blink,Bysmyyr/blink-crosswalk,modulexcite/blink,jtg-gg/blink,ondra-novak/blink,jtg-gg/blink,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,nwjs/blink,Pluto-tv/blink-crosswalk,jtg-gg/blink,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,jtg-gg/blink,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,smishenk/blink-crosswalk,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,modulexcite/blink,Pluto-tv/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,ondra-novak/blink,nwjs/blink,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,jtg-gg/blink,kurli/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,modulexcite/blink,ondra-novak/blink,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,nwjs/blink,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,Bysmyyr/blink-crosswalk,modulexcite/blink,modulexcite/blink,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,nwjs/blink,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,jtg-gg/blink