+ 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
2 Respuestas
+ 4
Here's a way using lambda in sort()
https://code.sololearn.com/c36E795uFzaK/?ref=app
+ 2
Ipang perfect thats what i am looking for