title: Sorting SharedPreferences using TreeMap - Not sorting it correctly
body: <p>So I need to sort an SharedPreferences, that got Float numbers in it.</p>
  
  <p>So I add data with;</p>
  
  <pre><code>SharedPreferences.Editor editor = getSharedPreferences(
              "Huskr_headline", 0).edit();
              editor.putFloat(tilfoejopgave_headline.getText().toString(), Float.valueOf(tilfoejopgave_klokken.getText().toString()));
              editor.commit();
  </code></pre>
  
  <p>And get the data with;</p>
  
  <pre><code>SharedPreferences Huskr_headline = getSharedPreferences(
              "Huskr_headline", 0);
  
  TreeMap&lt;String, ?&gt; Huskr_headline_treemap = new TreeMap&lt;String, Object&gt;(
              Huskr_headline.getAll());
  
  for (Map.Entry&lt;String, ?&gt; entry : Huskr_headline_treemap.entrySet()) {
  
  }
  </code></pre>
  
  <p>which outputs in values;</p>
  
  <p>10, 12, 14, 17, 8, 81, 9</p>
  
  <p>When in turn I want it to output values;</p>
  
  <p>8, 9, 10, 12, 14, 17, 81</p>
  
  <p>How to make it do this? The keys are something random in String.. I guess I need to sort by value, but how to do this? </p>
  
  <p>Thanks</p>