@ Dave
Thank you for the link.
I thanked you last night also but my post is missing.
On another forum a couple of my posts have also gone missing.
I know the difference between a Preview and a Submit,
but I now suspect my browser and two websites have some sort of confusion.
I have tried to digest the can of worms you opened for me
I gave up and found a different and easier way.
My code filters out 60% of all (intermediate) input lines in #_CCLEANER.LST
and puts 40% in the final output file which I want sorted.
I actually start with a much larger file CCLEANER*.LOG and used FIND etc pipes to produce the intermediate #_CCLEANER.LST.
I now get the desired result after inserting SORT between two FIND's, thus
MORE CCLEANER*.LOG | FIND "*" | SORT /+47 | FIND /I "OnRuleStarted" > #_CCLEANER.LST || (
ECHO F A I L U R E - Probably due to U.A.C. blocking - Try "Right Click" then "Run As Administrator"
PAUSE >NUL
EXIT /B
)
Regards
Alan