Correctly sorting the hashmap now by using Double instead of String.