Rectangle offset creates round corners

The node :snowflake:_Sort Points as Perimeter from the Sastrugi package can sort the points.

But as it is not a rectangular shape, have you looked at this post?

Or this one, as the shape displayed as working is consistent with yours.