diagram showing where stdout and stderr usually go, vs. when you use redirects. If you redirect stderr to stdout first, it goes to the original stdout location. If you redirect it second (after the file redirect), it follows stdout to the new location.
https://xoxo-media.sfo2.cdn.digitaloceanspaces.com/media_attachments/files/113/053/184/832/302/554/original/f185a9f454d699a1.png