Are you implying another candidate has written major legislation that passed??
Or are you just singling out Sanders?
He's been in the senate since 2007, 13 years. Before that he was a congressman for 16 years. He was an independent except for 2015-2016. Surprise surprise, that makes it hard to get things passed in a two party system. His votes matter. And he still has authored almost twice as many enacted bills as Obama.