Discussion categories should be sorted chronologically

By default categories should be sorted chronologically but
it is not showing result becuase of the mongo query and
use of default dict which effect the ordering. Changing
the mongo query and default dict to ordereddict fixed
the problem.

TNL-870