Draw endpoints on lines based on selection order