OK. I have a flat file that I need to sort. Non-database thing, but the txt file itself needs to be sorted in order to be brought into another program in a logical printing order.
A snippet of the txt file is as follows:
031151,,02100071281,Y1010
031151,,02114022410,Y101
031151,,02120018503,N001
888888,,02120018503
031151,,02150720000,Y101
Basically, I need to sort by lines with Y's first, then N's, and finally the blank.
With the numerical values taken into consideration.. ie, Y101 would come before Y1010...
I'm totally lost, frustrated, etc.
Any help would be appreciated.