Q&A plugin - performance boost
Q&A plugin - performance boost

Sort the threads array only after everything is in.
replace unshift with push since we sort the array anyway.
call updateUnreadBadge only when needed.

abaylis/mwEmbed,panda-os/mwEmbed,alexmilk/mwEmbed,slash851/mwEmbed,matsuu/mwEmbed,vladm3/mwEmbed,FlixMaster/mwEmbed,slash851/mwEmbed,tanyaLibatter/mwEmbed,alexmilk/mwEmbed,safarijv/mwEmbed,omridevk/mwEmbed,bordar/mwEmbed,FlixMaster/mwEmbed,omridevk/mwEmbed,panda-os/mwEmbed,kaltura/mwEmbed,panda-os/mwEmbed,abaylis/mwEmbed,tanyaLibatter/mwEmbed,joanpuigsanz/mwEmbed,joanpuigsanz/mwEmbed,joanpuigsanz/mwEmbed,omridevk/mwEmbed,kaltura/mwEmbed,bordar/mwEmbed,omridevk/mwEmbed,bordar/mwEmbed,FlixMaster/mwEmbed,matsuu/mwEmbed,bordar/mwEmbed,vladm3/mwEmbed,slash851/mwEmbed,alexmilk/mwEmbed,tanyaLibatter/mwEmbed,joanpuigsanz/mwEmbed,matsuu/mwEmbed,safarijv/mwEmbed,matsuu/mwEmbed,kaltura/mwEmbed,kaltura/mwEmbed,slash851/mwEmbed,safarijv/mwEmbed,alexmilk/mwEmbed,panda-os/mwEmbed,FlixMaster/mwEmbed,safarijv/mwEmbed,vladm3/mwEmbed,abaylis/mwEmbed,abaylis/mwEmbed,tanyaLibatter/mwEmbed,vladm3/mwEmbed