title: Sorting by alphabetical order immutable.js
body: <p>I would like to sort immutable.js orderedList by property <code>name</code>, </p>
  
  <p><code>data.map(x =&gt; x.get("name"))</code> returns the string, I want to sort my map by name in alphabetical order.</p>
  
  <p>How to do that? I tried: </p>
  
  <pre><code>return data.sortBy((val) =&gt; {
      if (dir === "up") {
        return val.get("name");
      } else {
        return - val.get("name");
      }
    });
  </code></pre>