add ties.method='first'