public static bool Compare_DonGia(SanPham u1, SanPham u2) { return(u1.DonGia >= u2.DonGia); }
public static bool Compare_SoLuong(SanPham u1, SanPham u2) { return(u1.SoLuong >= u2.SoLuong); }
public static bool Compare_TenSach(SanPham u1, SanPham u2) { return(string.Compare(u1.TenSach, u2.TenSach) >= 0); }
public static bool Compare_MaLS(SanPham u1, SanPham u2) { return(string.Compare(u1.MaLoaiSach, u2.MaLoaiSach) >= 0); }
public static bool Compare_MaTG(SanPham u1, SanPham u2) { return(string.Compare(u1.MaTacGia, u2.MaTacGia) >= 0); }
public static bool Compare_MaSach(SanPham u1, SanPham u2) { return(u1.MaSach >= u2.MaSach); }
public static bool Compare_TrangThai(SanPham u1, SanPham u2) { return(Convert.ToInt32(u1.TrangThai) < Convert.ToInt32(u2.TrangThai)); }