I have alot of array and i want to sort it by character.
Example string=model[15];
first i have this
DS-7208HGHI-SH
DS-7232HGHI-SH
DS-7204HGHI-SH
DS-7216HGHI-SH
and I want this result
DS-7204HGHI-SH
DS-7208HGHI-SH
DS-7216HGHI-SH
DS-7232HGHI-SH
is there anyway to do it?
sorry for bad english.
Thanks MiiNiPaa,but i don't clear this point this point
for(const auto& s: model)
Can you explain me?