cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting values within the context of queue

FarooqAhmed
Participant
0 Kudos

Hi Experts,

sorting.jpg

From the screenshot, 1 and 3 the input queues with dynamic number of context inside. 2 is the sorted version of 1. Now we need 4 which should be sorted version of 3 based on 2. Something like sortby key.

When done with sortby key after removing context its gives random sort but not the desired.

Our requirement is without the context disturbances the values inside each context should be sorted based on already sorted context.

Tried HASHMAP, but as we have duplicates its not fulfilled.

Please suggest.

Regards,

Farooq

Accepted Solutions (0)

Answers (2)

Answers (2)

FarooqAhmed
Participant
0 Kudos

nullcontext.jpg

Hi Evgeniy,

Thanks for the response. Now the problem is there is a one context with totally suppressed in the queue containing 3 contexts.

Cant able to remove that null context with any UDF or mapdefault or formatbyexample.

Please have the look at the image and suggest.

Thanks,

Farooq.

former_member190293
Active Contributor
0 Kudos

Hi Faroog!

Not sure if I completely understand your requirement, but it seems that if you use SortByKey on 3 using 1 as a source - you should get correct result.

Regards, Evgeniy.