Coastal processes

On a beach, swash carries sand diagonally up the shore, while backwash flows more directly downslope. What determines whether the sand has a net alongshore displacement over repeated waves?