package com.merakianalytics.orianna.types.common;

import java.util.Comparator;

public enum Tier {
        BRONZE(1),
        CHALLENGER(8),
        DIAMOND(5),
        GOLD(3),
        GRANDMASTER(7),
        MASTER(6),
        PLATINUM(4),
        SILVER(2),
        UNRANKED(0);

    public static Comparator<Tier> getComparator() {
        return new Comparator<Tier>() {
            @Override
            public int compare(final Tier o1, final Tier o2) {
                return Integer.compare(o1.level, o2.level);
            }
        };
    }

    private final int level;

    private Tier(final int level) {
        this.level = level;
    }

    public int compare(final Tier o) {
        return Integer.compare(level, o.level);
    }
}

@@ -105,14 +105,33 @@
     
-BRONZE
+UNRANKED(0),%0A        IRON
 (1),
@@ -143,20 +143,16 @@
     
-CHALLENGER(8
+BRONZE(2
 ),%0A 
@@ -162,17 +162,16 @@
     
-DIAMOND(5
+SILVER(3
 ),%0A 
@@ -182,17 +182,17 @@
    GOLD(
-3
+4
 ),%0A     
@@ -198,21 +198,18 @@
     
-GRANDMASTER(7
+PLATINUM(5
 ),%0A 
@@ -219,14 +219,15 @@
     
-MASTER
+DIAMOND
 (6),
@@ -239,18 +239,16 @@
     
-PLATINUM(4
+MASTER(7
 ),%0A 
@@ -258,16 +258,21 @@
     
-SILVER(2
+GRANDMASTER(8
 ),%0A 
@@ -278,26 +278,28 @@
         
-UNRANKED(0
+CHALLENGER(9
 );%0A%0A    

Add IRON tier to Tier.java, cleanup (#104)