core: refine sorting of elements
core: refine sorting of elements

Pelagicore/Media-Manager-Rygel-patched,Tarnyko/rygel,Pelagicore/Media-Manager-Rygel-patched,GNOME/rygel,GNOME/rygel,jku/rygel,GNOME/rygel,luisbg/rygel,jku/rygel,Pelagicore/Media-Manager-Rygel-patched,Tarnyko/rygel