Projects / pokerc /ย sort.hpp

git clone https://molodetz.nl/retoor/pokerc.git

Raw source file available here .

#pragma once
#include <vector>
#include <bits/stdc++.h>

bool compareCards(Card card1, Card card2){
return card1.key < card2.key;
}

void sort_card_vector_ascending(std::vector<Card> v){
std::sort(v.begin(),v.end(), compareCards);
}