+ 1

Sorting last string inside a vector.

How to sort a vector by its last string which is the name without modifying its string or spacing. I tried to use sort algorithm but it sorted the last string only. https://code.sololearn.com/caq1MtL9R4D1/?ref=app

17th Apr 2022, 11:41 PM
Yones Mussa
2 ответов
+ 4
Here's a way using lambda in sort() https://code.sololearn.com/c36E795uFzaK/?ref=app
18th Apr 2022, 3:38 AM
Ipang
+ 2
Ipang perfect thats what i am looking for
18th Apr 2022, 5:54 AM
Yones Mussa