title: How to sort products by Custom Attributes?
body: <p>Is there a way to sort products by any custom attribute? For example, sort by category, brand or colour?</p>
  
  <p>I assume that I should create the attribute and set it to be "Used for Sorting in Product Listing". </p>
  
  <p>I would like to sort products by the following attributes:</p>
  
  <p>gender first, then brand, category and lastly colour. </p>
  
  <p>The question is how do I use these attributes to sort the products in the backend so that they are visible in the frontend in that order?</p>