title: Sort a list of object by bool value
body: <p>By call my service i received a list of object. this is my object schema:</p>
  <pre><code>class MyCard {
    final String number;
    final String name;
    final String available;
    final bool isOwn;
  
    const MyCard({
      @required this.number,
      @required this.name,
      @required this.available,
      @required this.isOwn,
    });
  }
  </code></pre>
  <p>I want to sort my list according isOwn==true.So in order to i use list.sort :</p>
  <pre><code>myCards.sort((a, b) =&gt; a.isOwn - b.isOwn);
  </code></pre>
  <p>This syntax is not for dart !! how can i do with flutter?</p>