The following answer probably comes too late for your actual use case but maybe it is of interest to others.
The exsheets package can be used here. The syntax would be slightly different, though. The package let's you assign topics to questions and you can then choose which topic should be used.
\SetupExSheets{use-topics=<some topic>}
\begin{question}[topic=<some topic>]
Some question...
\end{question}
\begin{question}[topic=<some other topic>]
Some other question...
\end{question}
Here only the first question would be typeset.
When the questions are placed in a separate file this can be used to achieve the desired result. The exercises won't be sorted, though, but included in the order given in the file.
exsheets has a command \includequestions that includes questions/exercises from an external file which in the example below isn't stricly necessary, though, -- a simple \include would suffice. With unnumbered section titles one would need to reset the question counter manually. In any case one could easily define some wrapper macro for creating a heading, possibly resetting the counter, and including the questions according to a topic.
\documentclass{scrartcl}
\usepackage[load-headings]{exsheets}
\SetupExSheets{
% only place a number in front of the exercises instead of creating a title:
headings=runin-nr,
% default headings would be bold, so:
headings-format=,
% reset `question' counter with a new section:
counter-within=section
}
% the external file:
\usepackage{filecontents}
\begin{filecontents}{\jobname-exercises.tex}
\begin{question}[topic=geometry]
Find the area of ...
\end{question}
\begin{question}[topic=trigonometry]
The angle ...
\end{question}
\begin{question}[topic=algebra]
Prove that $x^2+1=0$ has no real solution.
\end{question}
\begin{question}[topic=geometry]
Find the radius ...
\end{question}
\end{filecontents}
\begin{document}
\section{Algebra}
\SetupExSheets{use-topics=algebra}
\includequestions{\jobname-exercises}
\section{Geometry}
\SetupExSheets{use-topics=geometry}
\includequestions{\jobname-exercises}
\section{Trigonometry}
\SetupExSheets{use-topics=trigonometry}
\includequestions{\jobname-exercises}
\end{document}

It would be relatively easy to add solutions to the exercises and print them in a different section afterwards (in which case a less ambiguous question numbering would be favourable, though).