Skip to content

Commit

Permalink
Sort flexible content items by key
Browse files Browse the repository at this point in the history
Marco Boom committed Apr 13, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent bf083fc commit 116941d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Field/FlexibleContent.php
Original file line number Diff line number Diff line change
@@ -112,6 +112,8 @@ protected function fetchFields($fieldName, Builder $builder)
$fields[$id]->fields->$name = $field->get();
}

ksort($fields);

return $fields;
}
}

0 comments on commit 116941d

Please sign in to comment.