Where I live, to pass inspection, I would have had to split the pipe where it comes through the floor with a "Y" and run the disposal to one side and the sink to the other, with a trap in each like you have. The way you have it set up you'll be pushing water from the disposal into the sink drain and vise versa.