title: STIntersects in the wrong lat/lng
body: <p>I'm facing a problem regarding the order of the lat/lng in the following query, it works if i put the coordinates in the wrong order (lng,lat). However geography::Point should take the lat then lng, this is very weird. I tried checking the lat/lng on google maps, and its in the correct position, the polygone in a clockwise order, everything looks fine, the query is as follows:</p>
  
  <pre><code>DECLARE @branch_id int = 0;
  DECLARE @point geography;
  SET @point = geography::Point(31.3353608924066, 30.0798141318826,  4326);
  
  SELECT B.ID, B.DeliveryZone, A.LatLong 
  FROM [dbo].[Branches] AS B
  INNER JOIN [dbo].Addresses AS A ON B.AddressID = A.ID 
  WHERE   B.ServiceProviderID = 2 AND
          B.Deleted = 0  AND
          B.DeliveryZone.STBuffer(1000).STIntersects( @point ) &gt; 0 ;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/KjiOP.png" alt="enter image description here"></p>