As Britgirl replied, it’s probably simply a matter of re-organizing the monitor layout from within the display settings of your operating system.
By disconnecting your old monitor #1, your monitor #2 automatically became the #1
Then by connecting a new monitor, this monitor was automatically assigned as #2
In Windows you’d go to Settings, System, Display and from there you can re-order the monitors as wished.