I am not seeing any sort order for the given input where the 1st line of your input would be the final line of a sorted value. Please explain your sort order you are using.
Since your sort command doesn't specify a field separator character and since there are no blanks in your input file, the command:
will produce exactly the same results. And, as I said before and as PikK45 has also noted, using this sort order and deleting the last line of the sorted results doesn't even come close to the output you said you expect.
Even if I assume that there are multiple concatenated sets of sorted lines in your input file, the output you said you expect still doesn't even come close to what you would get by deleting the last line of each sorted set of lines in your input.
My inital input file was somethign like below :
INPUT
after using "sort" of this file i got the below file.
But after this i need something like the below format.
I need the last row from each sorted value(combination of first 4 columns)