It requires just a simple modification to the JSL I originally provided.

names default to here(1);
dt = current data table();
// Find all of the peaks
theRows = (dt << get rows where(col max(:signal, :ID)==:signal));
// Display results
New window("Peak Maximums",
table box(
string col box("ID", :ID[theRows]),
number col box("time, min",:"time, min"n[theRows]),
number col box("signal", :signal[theRows])
)
);
// Select the rows in the data table
dt << clear select;
dt << select rows(theRows);
Jim