Skip to content

Commit 116941d

Browse files
author
Marco Boom
committed
Sort flexible content items by key
1 parent bf083fc commit 116941d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Field/FlexibleContent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ protected function fetchFields($fieldName, Builder $builder)
112112
$fields[$id]->fields->$name = $field->get();
113113
}
114114

115+
ksort($fields);
116+
115117
return $fields;
116118
}
117119
}

0 commit comments

Comments
 (0)