Order of pages in pages form element

Hello everyone,

In my page blueprint I’m using the pages form field component to select a number of pages. In general, this works great. The pages are properly selected and saved to the frontmatter in the order that they were selected.

However, when later editing the page, the order of the selected pages is not the same as previously selected. Instead, they now seem to be ordered by folder number. And when saving the page, the original order gets overwritten with this new order. This should not happen and I was wondering, if this is a bug or something that can be changing via some attribute or setting.