Searching strings. Can not make sift do what i need

Hello there.
I am having a hard time on that task and no idea how to do it.
I hope the below picture can explain my problems.

What do i need to make that work?

the_above_patch.v4p (17.5 kB)

have a look at the attached patch

siftsort.v4p (8.7 kB)

Sift and me, friends again :)
Thank you bjoern for your quick help.