The need for sorting entries by depth disappeared with the migration to
new codec infrastructure. Tracing shows some 44% CPU being spent here,
so this should provide a marked improvement with large data changes.
Change-Id: I7c437da5656cc5946ff9413307a563d4ff9b15de Signed-off-by: Robert Varga <rovarga@cisco.com>