bool championsCompare(Champions &lhs, Champions &rhs) { bool resultStatus = false; Container champsSort; if (champsSort.GetArrangeMember() == "AD") { if (lhs.GetChampAD() < rhs.GetChampAD()) { resultStatus = true; } else { if (lhs.GetChampAD() == rhs.GetChampAD()) { if (lhs.GetChampName() < rhs.GetChampName()) { resultStatus = true; } } } } else if (champsSort.GetArrangeMember() == "AP") { if (lhs.GetChampAP() < rhs.GetChampAP()) { resultStatus = true; } else { if (lhs.GetChampAP() == rhs.GetChampAP()) { if (lhs.GetChampName() < rhs.GetChampName()) { resultStatus = true; } } } } else if (champsSort.GetArrangeMember() == "DEF") { if (lhs.GetChampDef() < rhs.GetChampDef()) { resultStatus = true; } else { if (lhs.GetChampDef() == rhs.GetChampDef()) { if (lhs.GetChampName() < rhs.GetChampName()) { resultStatus = true; } } } } else if (champsSort.GetArrangeMember() == "Diff") { if (lhs.GetChampDiff() < rhs.GetChampDiff()) { resultStatus = true; } else { if (lhs.GetChampDiff() == rhs.GetChampDiff()) { if (lhs.GetChampName() < rhs.GetChampName()) { resultStatus = true; } } } } else if (champsSort.GetArrangeMember() == "DEF") { if (lhs.GetChampDef() < rhs.GetChampDef()) { resultStatus = true; } else { if (lhs.GetChampDef() == rhs.GetChampDef()) { if (lhs.GetChampName() < rhs.GetChampName()) { resultStatus = true; } } } } else if (champsSort.GetArrangeMember() == "IP") { if (lhs.GetChampIP() < rhs.GetChampIP()) { resultStatus = true; } else { if (lhs.GetChampIP() == rhs.GetChampIP()) { if (lhs.GetChampName() < rhs.GetChampName()) { resultStatus = true; } } } } else if (champsSort.GetArrangeMember() == "RP") { if (lhs.GetChampRP() < rhs.GetChampRP()) { resultStatus = true; } else { if (lhs.GetChampRP() == rhs.GetChampRP()) { if (lhs.GetChampName() < rhs.GetChampName()) { resultStatus = true; } } } } else { if (lhs.GetChampName() < rhs.GetChampName()) { resultStatus = true; } else { if (lhs.GetChampName() == rhs.GetChampName()) { if (lhs.GetChampIP() < rhs.GetChampIP()) { resultStatus = true; } } } } return resultStatus; }