Skip to content

Commit

Permalink
Update windows_evb_config_generator.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao committed Mar 4, 2024
1 parent e8c6e6f commit f334431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/windows_evb_config_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ void buildDir(XmlBuilder builder, String name, List<FileSystemEntity> 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) {
Expand Down

0 comments on commit f334431

Please sign in to comment.