title: Pass filter and sort parameters in query string HTTP request and parse with Flask
body: <p>I'm developing a REST api with Flask.
  One of my endpoints should support filtering and sorting.
  lets say i have these fields: category, color, severity.</p>
  
  <p>Lets say i want to get all the items that category is 'a'or 'b' and the color is black and sort it by the severiy asc and color desc.</p>
  
  <p>for the sorting i saw that prepending '+' or '-' is a way to set the order.</p>
  
  <p><strong>1.What is the best practice to decode the filter expression? assuming i want to use a query string method for passing parameters in get request (or the best option is to use a json-body parameters for this need)</strong></p>
  
  <p><strong>2. What is the best way to parse it in flask framework?</strong></p>
  
  <p>my_ip/items?sort=+severity&amp;sort=-color&amp;filter=???</p>