Sort a list with a element still in last position
<p>I have list of objects with data. I want the the particular object alone to stay last in the list when I am doing sorting. 
But its coming at the very first now.</p>

<p>Present:</p>

<p><strong>Archived</strong><br>
Application<br>
Run - time etc<br>
Embedded Components  IDE -<br>
Debug, Compile and Build Tools<br>
Initialization/Boot/Device Driver   </p>

<p>Required</p>

<p>Application<br>
Run - time etc<br>
Embedded Components  IDE -<br>
Debug, Compile and Build Tools<br>
Initialization/Boot/Device Driver<br>
<strong>Archived</strong>  </p>

<pre><code>Collections.sort(existingList,new Comparator&lt;Map&lt;String, Object&gt;&gt;() {
  public int compare(Map&lt;String, Object&gt; o1,Map&lt;String, Object&gt; o2) {
    String archiveCheck = (String)o1.get("name");
    if(archiveCheck.equalsIgnoreCase("Archived"))
        return -10000;
    else
        return ((String) o1.get("name")).compareTo((String) o2.get("name"));
  }
});
</code></pre>