Hello everybody!

As I thought I became more comfortable with data structure I've got the problem I can't solve. It looks so:

I have that kind of text file:

ABCD vvvv 1e-12

ABCD hhhh 1e-6

ABCD ggggg 1e-3

ASDE ffffff 1e-57

ASDE dddd 0.001

etc.

I would like to read (and write into another file) only the lines with the lowest number in the third column according to the parameter in the first column. The result should look like this:

ABCD vvvv 1e-12

ASDE ffffff 1e-57

etc.

I would be grateful for any tip you will give me. Thank you!