fix prelogin negotiation bug

range iteration is random and SQL server expects the prelogin items to
be in ascending order