title: Sort Item to front of a list in Dart
body: <p>I am already sorting my list in dart/flutter alphabetically, with</p>
  
  <pre><code>a.value['name'].toString().toLowerCase().compareTo(b.value['name'].toString().toLowerCase());
  </code></pre>
  
  <p>However, I would also like to sort one of the items in my list to the front, ignoring the alphabetical sorting. Does anyone know how to do that?</p>
  
  <p>Edit:
  Here is my Firebase animated list</p>
  
  <pre><code>FirebaseAnimatedList(
        query: query,
        sort: (a, b) {
          return a.value['name'].toString().toLowerCase().compareTo(b.value['name'].toString().toLowerCase());
        },
        padding: EdgeInsets.all(8.0),
        defaultChild: Center(
          child: CircularProgressIndicator(
            valueColor: AlwaysStoppedAnimation&lt;Color&gt;(appTheme.accentColor),
            strokeWidth: 2.0,
          ),
        ),
        itemBuilder: (BuildContext context, DataSnapshot snapshot,
          Animation&lt;double&gt; animation, int index) {
            return Item(index);
        },
      )
  </code></pre>
  
  <p>I'm sorting, for example, a list of people's names in this list. But, I want a certain name, "Roger", to always be sorted to the top. How is this possible?</p>