[Debugger] Fixed sorting of debugger engines

Fixes bug #19664