Sort pieces globally, not by layers

Hello, I have a cutting program with multiple layers, so each layer can have a different entry length or type of cut.
The problem is that it doesn’t allow me to sort the pieces globally; it only lets me sort the groups within each layer.
How can I fix this?

Thank you very much