// Token: 0x06000E2E RID: 3630 RVA: 0x00061414 File Offset: 0x0005F614
 private static int CompareLevel(IUnityItem a, IUnityItem b, bool ascending)
 {
     if (a.View.LevelLock < b.View.LevelLock)
     {
         return((!ascending) ? 1 : -1);
     }
     if (a.View.LevelLock > b.View.LevelLock)
     {
         return((!ascending) ? -1 : 1);
     }
     return(ShopSorting.CompareName(a, b, ascending));
 }
 // Token: 0x06000E2D RID: 3629 RVA: 0x0006135C File Offset: 0x0005F55C
 private static int CompareDuration(InventoryItem a, InventoryItem b, bool ascending)
 {
     if (a.IsPermanent && b.IsPermanent)
     {
         return(ShopSorting.CompareName(a.Item, b.Item, ascending));
     }
     if (a.IsPermanent)
     {
         return((!ascending) ? -1 : 1);
     }
     if (b.IsPermanent)
     {
         return((!ascending) ? 1 : -1);
     }
     if (a.DaysRemaining > b.DaysRemaining)
     {
         return((!ascending) ? -1 : 1);
     }
     if (a.DaysRemaining < b.DaysRemaining)
     {
         return((!ascending) ? 1 : -1);
     }
     return(ShopSorting.CompareName(a.Item, b.Item, ascending));
 }