@iQChange I am sorry the title is misleading but the perfect sort order is not the main point,
Not just a puzzle, I will use this for a few things
like determining what item does user would probably like
If I just insert everytime new data is provided
at some point I will make old data go wrong ?
I do on paper if I assume wrong then the order will sometimes go wrong too
I am thinking that I should sort again if new data is provided ? or shouldn't I ?
Is there more efficient data structure than array ?