﻿// Decompiled with JetBrains decompiler
// Type: Sorter
// Assembly: Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 19851F1B-4780-4223-BA01-2C20F2CD781E
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Universe Stuff\LOCO Server\Unity Web Player Extractor\Saved Files\LOCO Server.unity3d_unpacked\Assembly-CSharp.dll

using System.Collections.Generic;

public class Sorter : IComparer<AbilitySlotDesc>
{
  public int Compare(AbilitySlotDesc x, AbilitySlotDesc y)
  {
    if (x.BuildingLevelRequired == 1 && y.BuildingLevelRequired == 1)
      return 0;
    if (x.BuildingLevelRequired == 1)
      return 1;
    if (y.BuildingLevelRequired == 1)
      return -1;
    return x.BuildingLevelRequired - y.BuildingLevelRequired;
  }
}
