Hi @Ashutosh_Mishra1 and welcome in the MongoDB Community
!
When you want to alter the sorting algorithm / behaviour, you use collation. I’m not sure if there is actually a solution for exactly your use case, but if it exists, it’s in here.
Cheers,
Maxime.