output: sort nicely by module name, then by symbol name

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