Swap ip range start and end when given in desc order

Hi

This PR fixes #36. Code rather straightforward, but in a few words it swaps range's start & end if they're given in a wrong order.