title: Sort data by priorities
body: <p>I have a SortableList where you can organize your order to make filter priorities.</p>
  
  <p>like that:</p>
  
  <pre><code>[
      0: "Fruits",
      1: "Legumes",
      2: "Example1",
  ]
  </code></pre>
  
  <p>then I have some data like this:</p>
  
  <pre><code>[
      {
          id: 0,
          _source: {
                       someOtherProps,
                       source: "Fruits"
                   }
      },
      {
          id: 1,
          _source: {
                      someOtherProps, 
                      source: "Example1"
                   }
      },
      .... blablabla
  ]
  </code></pre>
  
  <p>I want to sort the data by the source, respecting the order priorities.</p>
  
  <p>I try to use the sort() function, but I don't have any ideas how I could do that.</p>
  
  <p>In this example: I will have all my data object sorted firstly by the source "Fruits", then "Legumes" then "Example1".</p>