From f3344312efe249e644fee039a4f113a671bf3730 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=99=E5=A8=87?=
Date: Mon, 4 Mar 2024 23:24:53 +0800
Subject: [PATCH] Update windows_evb_config_generator.dart
---
dev/windows_evb_config_generator.dart | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev/windows_evb_config_generator.dart b/dev/windows_evb_config_generator.dart
index 04ac309..a1db9c4 100644
--- a/dev/windows_evb_config_generator.dart
+++ b/dev/windows_evb_config_generator.dart
@@ -85,8 +85,8 @@ void buildDir(XmlBuilder builder, String name, List entities)
builder.element('OverwriteAttributes', nest: 'False');
builder.element('HideFromDialogs', nest: 0);
builder.element('Files', nest: () {
- for (final entity in entities
- ..sort((a, b) => a.name.toLowerCase().compareTo(b.name.toLowerCase()))) {
+ entities.sort((a, b) => a.name.toLowerCase().compareTo(b.name.toLowerCase()));
+ for (final entity in entities) {
if (entity is Directory) {
buildDir(builder, entity.name, entity.listSync());
} else if (entity is File) {