0

my array has values like

myarray = array (array ('one', '','','three'), array('two','one','','four'), array('three','two,'one','two'));

like to see

myarray = array (array ('one', 'one','one',''), array('two','two','','two'), array('three','','','three'));

appreciate all the help This is my first question in stackoverflow, pardon me for any mistakes. Thanks Balam

Balam
  • 1
  • I tried all the methods mentioned in the link. i am not getting the results I like to see. appreciate if you could point me to the correct method. thanks – Balam Dec 27 '18 at 16:21
  • This is not simple sort method - I cannot think of any compare-function to give you thos result. But it can be done in nested for loop twice- first collect indexs of each number and them assign them to new array – dWinder Dec 27 '18 at 22:10

0 Answers0