I was going to say as much in my post, then I realized there are two reasons to do comparisons: 1) To provide a consistent display order, and 2) To sort the start and end addresses of a range before iterating over said range. The OP is clearly doing the second, based on the names of his variables.