Sorting order - is this a bug?

Thankyou.
That worked. I have no idea why or how, but it did.