Hello,
Use this mapping:
Order number -> remove context -> split by value (value change) -> collapse context -> target node
BTW, did u check ur mapping output?
Edited - there is no need to use sort function so removing the same from mapping.
Thanks
Amit Srivastava