The Polymorphic serialiser is changing the order of results, grouping them by resource type. This causes problems when using the serialiser to perform actions such as searching where the original order of the results represents the strength of the search hit.
To Reproduce*
Implement a polymorphic serialiser
Perform a query that will return multiple resource types
Have your application provide the results to the serialiser not already grouped by resource type
Expected behavior*
The serialiser should honour the order of the resources or provide an option to maintain order
Describe the bug*
The Polymorphic serialiser is changing the order of results, grouping them by resource type. This causes problems when using the serialiser to perform actions such as searching where the original order of the results represents the strength of the search hit.
To Reproduce*
Expected behavior*
The serialiser should honour the order of the resources or provide an option to maintain order
Platform*
* means required.