Adding sorting to the root source