query frontpage topics order by topic type