You're using Sort as if it is a static function (calling on a class), while you should actually call it on a cCuboid object.
So you should use _check_cuboid:Sort() instead
Also, all this function does is make sure the p1 coordinates are all lower values than the p2 coordinates. This will make sure the IsInside() functions work
So you should use _check_cuboid:Sort() instead
Also, all this function does is make sure the p1 coordinates are all lower values than the p2 coordinates. This will make sure the IsInside() functions work