I know this seems like an obvious question, but I haven't been able to find any examples of sentences in logic higher than second order, so my intuition on how it's supposed to behave is failing me. There are descriptions describing third order logic as 'properties of properties' but without example syntax, I'm not sure if I'm on the wrong track or not.
Propositional logic sentences are simple propositions connected by logical connectives:
$\phi$ $\land$ $\psi$
$\phi \lor \psi$
$\lnot \phi \rightarrow \psi$
First order logic sentences are quantified objects with free predicates and functions:
$\exists$x $\forall$y P(f(x)) $\rightarrow$ Q(y)
Second order logic sentences don't just quantify the objects, but the functions and predicates:
$\forall$Q $\exists$P $\exists$f $\exists$x $\forall$y P(f(x)) $\rightarrow$ Q(y)
How do we go higher than second order? What are some examples of third, fourth, or fifth order logic sentences?
The axioms of topology, for example, can be seen as third-order axioms. Simply because of the axiom that a topology is closed under unions:
$$\forall\mathcal U((\forall U\in\mathcal U\rightarrow U\in\tau)\rightarrow(\exists V\forall x(x\in V\leftrightarrow\exists U\in\mathcal U(x\in U))\land V\in\tau))$$
In the language of arithmetic, a well-order of the second-order predicates (namely, $\mathcal P(\Bbb N)$), or even the existence thereof, is a third-order sentence coming from the numbers themselves.
To some extent this is the great thing about set theory here. It allows us to take any of these high-order sentences and make them first-order in the language of sets. Of course we can make them into first-order in a two/three/four-sorted logic, which acts a bit like type theory, but you do run into issues there (for example, the characterization of $\Bbb R$ as the unique complete ordered field won't translate well into first-order logic).