diff --git a/internal/config/config.go b/internal/config/config.go
index <HASH>..<HASH> 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -33,7 +33,7 @@ import (
 
 var (
 	// Default sections
-	sectionDefaults = []string{"agent", "global_tags", "outputs",
+	sectionDefaults = []string{"global_tags", "agent", "outputs",
 		"processors", "aggregators", "inputs"}
 
 	// Default input plugins
@@ -536,13 +536,13 @@ func printFilteredOutputs(outputFilters []string, commented bool) {
 }
 
 func printFilteredGlobalSections(sectionFilters []string) {
-	if sliceContains("agent", sectionFilters) {
-		fmt.Printf(agentConfig)
-	}
-
 	if sliceContains("global_tags", sectionFilters) {
 		fmt.Printf(globalTagsConfig)
 	}
+
+	if sliceContains("agent", sectionFilters) {
+		fmt.Printf(agentConfig)
+	}
 }
 
 type printer interface {
Print global_tags first in sample configuration