Hey! I really need help- no one seems to know...
I parse a flat file that looks like
this:
report: sort source-a,port-a,time-a
Monmouth,2000-05-2000,192,53
Jackson,2000-04-2100,167,24
Monmouth,2000-04-1000,63,12
the report line tells me that it's a sort on these fields with -a (ascending)
or -d (descending). The sort conditions are inputed by the user so it
changes. I need to print out the the entire line of the file not just the
inputed fields by the user. So, it should sort on source in asc. order first.
If there are any matches then sort on port in asc. then if there are any
matches then the last field.
I can split the data, call the sort subroutine but I can't do the multiple
sort it.
Anything is apprecitated!
PMONK