I have a list of values (bids). I already have generated the minimum value via:

Code:
egen minbid= min(bid), by(contractnum)
Contractnum is just the contract the bid was under. So, how can I create a list of all the second lowest bids by contract?