Windows rewrote the partition table on sdb. Not quite sure why it modified sdb. Did you have sdb as default boot drive in BIOS? Windows puts it boot files on BIOS default not necessarily the drive you install to.
Since Windows does not properly see Linux, it does not correctly rewrite partition table. Your extended partition has a large gap from the start of the extended partition, and the start of swap nearer end of extended partition.
In many cases you can just use testdisk to restore the missing Linux partition and it will work or may need Boot-Repair just to restore grub to MBR.
Testdisk Instructions
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
http://www.cgsecurity.org/wiki/Menu_Analyse
I would also copy Windows boot files bootmgr & /boot/BCD into sda and see it you can directly boot Windows from sda drive. If not run Windows repair to make sda work without sdb. And install grub to sdb so sdb works without sda. So not use auto fix in Boot-Repair as that just installs grub to all drives. You want advanced mode to choose which boot loader and which drive.