Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string stSort;
- if (!pNode->GetValue("sort", 0, stSort))
- {
- stSort = "None";
- }
- if (boost::iequals(stSort, "Asc"))
- {
- std::sort(shopItems.begin(), shopItems.end(), CompareShopItemName);
- }
- else if(boost::iequals(stSort, "Desc"))
- {
- std::sort(shopItems.rbegin(), shopItems.rend(), CompareShopItemName);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement