In geological terms, the principle of cross-cutting relationships states that if one rock layer contains fragments or pieces of another rock, the rock containing the fragments must be younger than the rock from which the fragments came. Since the sandstone contains small pieces of the granite, this indicates that the granite must be older than the sandstone. Therefore, the answer is:
the granite.