On Thu, Mar 12, 2009 at 2:44 PM, Stefan Schmidt <stefanschmidt42@googlemail.com> wrote:
As a work around, I could convert two PortNumbers back to Int-Values before comparing them, but I think the ordering functions for the PortNumber-Type do not work as expected. Or am I wrong?

You're right. Arguably the port numbers shouldn't have their endianness switched until the need actually arises (passed into bind or the like).

However, it's also arguably the case that you shouldn't care about port number ordering. That smells dodgy to me.