Portage/Dependency/Normalize.hs: basic implementation of dependency sorting in output

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>