refactor: extract function to normalise a single range that may span zero
refactor: extract function to normalise a single range that may span zero

weaveworks/weave,weaveworks/weave,weaveworks/weave,weaveworks/weave