Ensure items are ordered correctly on deserialisation