You likely imported this as a DXF. There’s a chunk of debug code that slipped into the last release that was never supposed to that assigns the index of the object to its Cut Order Priority value when importing DXF files. We use it internally for tracking down import issues.
If you imported a DXF file, the ‘Order by Priority’ setting means that everything is being cut in the order it came out of the DXF. If you remove that setting, or select everything, go to Shape Properties, and enter ‘0’ in the ‘Cut Order Priority’ it will fix it.
The other possibility is that your lines are just lines, not closed shapes - if the shapes aren’t continuous closed loops it’s impossible for the software to decide what’s ‘inside’. Your shapes are grouped, but 4 grouped lines are not a rectangle - ungroup and see if they’re disconnected.