Add filtering and ordering to fetched data from frontend application

When I am querying to get certain types of objects or lists of transactions what is the best way to fetch the data from a frontend:

  1. Using simple filtering (i. e. before this timestamp, the value of a key in an object is greater than X)
  2. Order the returned data by some metrics (e.g. ascending or descending order based on timestamp)
2 Likes