title: Sort data in an SQL-query or afterwards in my Java-backend?
body: <p>The query will return around 10-100 rows of data depending on the request some filtering are needed.
  So, is it better to filter it directly in SQL or should I just return all rows and then filter the data in my Java code?
  Both performance- and best practise-wise.</p>