You can't make it a "national" law. It would have to be state-by-state.
Oops then why would (any) state want to change how they appoint their delegates?
Right now, winner takes all.
That would seem to be the most efficient, no?
Why fix this, unless every state changed the way they appoint delegates?