Shuffle struct by Int
问题 How I can shuffle my struct by variable priority and display in TableView? So now I have 20 documents in my struct, but later I will have 100+ documents in my struct. 5 or 7 or 10 documents will have priority from 10 to 1, other documents have priority 0. Me need display 5 or 7 or 10 documents on top position in tableView. Other documents which have priority 0 must be located after firsts 5 or 7 or 10 documents in random order. I. e. the firsts 5 or 7 or 10 documents should be placed