can you sort array in this way? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

can you sort array in this way?

sort array on the bese of last character of every element like in this array unsorted array: array('night','method','team','apple','election','dangerous') sorted array array('apple','election','night','team','method','dangerous') if last character not found then base on the next character of English alphabet

6th Jun 2020, 5:11 AM
Muhammad Idrees
Muhammad Idrees - avatar
0 Answers