Switching points when determining the slope

When I try to find the slope of a line, how do I know which points are (x1, y1) and (x2, y2) ?