Definition 1. For $S$ a set, a $S$-sorted set is the data of a set $X$ together with a map $\sigma: X \to S$.
It seems like a weird way to talk just about map. But you have to think of $X$ as a big bag of elements, and of $\sigma(x)$ as a "label/color" for the element $x$ that tells you what kind of element is $x$.
A very dumb example: the set $\mathbb N$ is naturally $\{e,o\}$-sorted by defining $\sigma(n) = e$ whenever $n$ is even and $\sigma(n) = o$ whenever $n$ is odd.
Another one: if $G$ is a graph with set of vertices $V$, for which each vertex is colored in blue, red of green, then $V$ is naturally $\{r,b,g\}$-sorted by defining $\sigma(v) = r$ if $v$ is colored red, $\sigma(v) = b$ if $v$ is colored blue and $\sigma(v)=g$ if $v$ is colored green.
A last one: in a multi-edge directed graph the set $E$ of edges is $V\times V$-sorted (every edge can be labeled by its source and target).
Fact. A $S$-sorted set $X$ is exactly the same as an $S$-indexed family of sets $(X_s)_{s\in S}$.
(From $\sigma: X \to S$, we get the family $(\sigma^{-1}(s))_{s\in S}$; and from $(X_s)_{s\in S}$ we can craft $X = \coprod_{s\in S} X_s$ and $\sigma: X \to S$ by mapping $\sigma(x)$ to $s$ when $x$ is in the part $X_s$.)
Notation. For a $S$-sorted set $X$ with map $\sigma: X \to S$, I will denote $X_s = \sigma^{-1}(s)$ for simplicity.
Last, for a fixed $S$, there is a category of $S$-sorted sets where the maps from $(X,\sigma)$ to $(Y,\tau)$ are the maps $\varphi:X\to Y$ such that $\tau \varphi = \sigma$. I let you convince yourself that, under the identification with $S$-indexed families, those maps are just the families of maps $(\varphi_s: X_s\to Y_s)_{s\in S}$. Now stare at those definitions for several minutes and you should see that this category is just $\mathrm{Set}^S$.
Let's continue with signatures (this is basically the same definition as in your post). Fix some set $S$. We will call the elements the sorts. They are some kind of labels/colors for elements to come.
Definition 2. A $S$-sorted signature is the data of a set $\mathcal O$, whose elements are called operations, together with a map $a: \mathcal O \to S^\ast \times S$ called the arity map.
Hence a signature is just a bunch of operations, for each of which you know the type of its inputs and ouput: if $f\in \mathcal O$ and $a(f) = (s_1\dots s_n, s)$, you can think of $f$ as an operation that takes arguments labelled $s_1,\dots,s_n$ and gives back an element labelled $s$.
An example $\Sigma_{\rm vect}$: $S=\{\kappa,\nu\}$ has two sorts and $\mathcal O = \{z_v,i_v,a_v,m_s,a_s,i_s,z_s,e_s,m\}$ with $a(z_v) =(,\nu)$, $a(i_v) = (\nu,\nu)$, $a(a_v)=(\nu\nu,\nu)$, $a(z_s) =(,\kappa)$, $a(e_s) =(,\kappa)$, $a(i_s) = (\kappa,\kappa)$, $a(a_s)=(\kappa\kappa,\kappa)$, $a(m_s)=(\kappa\kappa,\kappa)$, $a(m)=(\kappa\nu,\nu)$. This is a good signature to talk about vector spaces: there is two sorts, $\kappa$ for the scalars, and $\nu$ for the vectors; $z_v,i_v,a_v$ stands for the zero, inverse and addition of vectors; $z_s,e_s,i_s,a_s,m_s$ stands for the zero, neutral, inverse, adddition and multiplication of the field of scalars; and $m$ represents the multiplication of vectors by scalars.
Of course, for now I say "operations" and "arguments" and "arity" etc., but this is just vocabulary to give some intuition. In order to make those words concrete, we have to define algebras.
Definition 3. Given a $S$-signature $\Sigma$, a $\Sigma$-algebra $\mathcal A$ is an $S$-sorted set $A$ together with a map $f^{\mathcal A}: A_{s_1}\times\dots\times A_{s_n} \to A_s$ for each $f\in \mathcal O$ such that $a(f) = (s_1\dots s_n,s)$
(I use the term "algebra" to match your document, but this is usually called a $\Sigma$-structure and the word algebra is usually reserved to the structures that satify the axioms of a theory.)
Following our previous example, a $\Sigma_{\rm vect}$-algebra is the data of two sets $A_\kappa$ and $A_\nu$ with operations $z_v:1 \to A_\nu$, $i_v:A_\nu\to A_\nu$, $a_v:A_\nu\times A_\nu \to A_\nu$, $m_s: A_\kappa\times A_\kappa \to A_\kappa$, $a_s: A_\kappa\times A_\kappa \to A_\kappa$, $i_s: A_\kappa\to A_\kappa$, $z_s:1\to A_\kappa$, $e_s:1\to A_\kappa$, $m: A_\kappa\times A_\nu \to A_\nu$. This is all the structure you need to make $A_\nu$ a vector space over $A_\kappa$. (Of course you would also need to add some axioms to make $A_\kappa$ a field, and $A_\nu$ an abelian group and finally $A_\nu$ a vector space over $A_\kappa$. But you have the structure, the rest is properties.)
Definition 3'. A homomorphism $\mathcal A\to \mathcal B$ of algebra is a family of maps $\varphi_s: A_s \to B_s$ such that: for all $f\in \mathcal O$ such that $a(f) = (s_1\dots s_n,s)$,
$$ \varphi_s(f^{\mathcal A}(x_1,\dots,x_n)) = f^{\mathcal B}(\varphi_{s_1}(x_1),\dots,\varphi_{s_n}(x_n)) $$
I won't go into detail but for our example, you retrieve the notion of homomorphism between vector spaces (over different fields).
Now let us go to the categorical stuff: there is a category $\operatorname{Alg}(\Sigma)$ whose objects are algebras and arrows are the homomorphisms of algebras as just defined. We can craft a functor as follow:
$$ \operatorname{Alg}(\Sigma) \to \mathrm{Set}^S,\,
\mathcal A \mapsto A $$
The functor is trivial on the arrows, because a homomorphism of algebra is already defined as a $S$-indexed family of maps.