Original Post
So I've recently needed to sort a collection (more specifically a listviewitem collection) and an array at the same time, but at the same time keeping them parallel. I wanted to use the collection's built in sort feature, however, the most I've found I can do with it is return a value from a comparison of two objects in the collection. In other words, the collection's sorting method seems to be totally internal. Normally that is fine, but I want to keep the collection's elements and the array's elements parallel so I would need to know each time the collection switches some elements so that I can do the same in the array. My question is, is there an event or something that is used when elements of the collection are moved around, or am I going to have to write a sort that sorts both at the same time?