title: Sort a list of objects in a specific order
body: <p>Let's say I have a list of Place objects :</p>
  <pre><code>class Place {
    String name;
    PlaceType type;
  
    Place({
      required this.name,
      required this.type,
    });
  }
  
  enum PlaceType { museum, cinema, supermarket }
  </code></pre>
  <p>What's the best way to sort the list by PlaceType in a specific order (let's say supermarket &gt; cinema &gt; museum) ?</p>
  <p>For now I just sort it like below, but I don't know if I can ask for a specific order there.</p>
  <pre><code>placesList.sort(
      (Place a, Place b) =&gt; a.placeType.name.compareTo(b.placeType.name),
    );
  </code></pre>