diff --git a/apex/builder.go b/apex/builder.go index 3b9cac069..18d0836b6 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -1133,7 +1133,7 @@ func (a *apexBundle) buildCannedFsConfig(ctx android.ModuleContext) android.Outp if a.properties.Canned_fs_config != nil { cmd.Text("cat").Input(android.PathForModuleSrc(ctx, *a.properties.Canned_fs_config)) } - cmd.Text(")").FlagWithOutput("> ", cannedFsConfig) + cmd.Text(") | LC_ALL=C sort ").FlagWithOutput("> ", cannedFsConfig) builder.Build("generateFsConfig", fmt.Sprintf("Generating canned fs config for %s", a.BaseModuleName())) return cannedFsConfig.OutputPath