public static int CompareLayer(this Item item, Item other) { int res = 0; if (item.CompareNull(other, ref res)) { return(res); } return(CompareLayer(Fix(item.Layer, item.ItemID), Fix(other.Layer, other.ItemID))); }