Why my test case fails

i think i done sorting right but why i got different answer

Are you sorting your code properly ?
You have not sorted your value according to the closing price, can you recheck your logic?

Please see my first screenshot .
I wrote Collections.sort(list) and I wrote compare to function

Yes, but you have not implemented your compare to function properly :slight_smile:
Refer to the References given under your taskboard properly.

Hey please refrain from posting any code screenshots here, as far as I can see your issue is resolved right?