HI, I was going through a search query but we have a specific requirement to sort the filter results based on their ticket numbers and the summary data.
In below given example, the first ticket ABC-1501 is a main ticket and the second ticket ABC-1502 is a sub ticket. (Sub ticket contains the number of main ticket in it's description/title).
Whenever the title contains the ticket number of the main ticket it should be always placed below the main ticket.

Looking forward to your help.
Thanks,
Jay