[Fix #2] Change sort order in basket
This commit is contained in:
parent
a870736d72
commit
b76d1e129a
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ Seller* Marketplace::findSellerWithUuid(const std::string& uuid)
|
|||
|
||||
void Marketplace::addArticleToBasket(std::unique_ptr<Article> article)
|
||||
{
|
||||
basket_.push_back(std::move(article));
|
||||
basket_.insert(basket_.begin(), std::move(article)); // article to the beginning of the basket vector
|
||||
}
|
||||
|
||||
size_t Marketplace::basketSize() { return basket_.size(); }
|
||||
|
|
Loading…
Reference in a new issue