Sounds like a good idea - for all types to be equal!Quote from: "cormullion"
You can sort a list that contains mixed-type elements, so I see no reason why you couldn't do the same for an array. I wrote a C vector implementation a while ago that let you do this, you can use it just like a list, except insertions/removal from anywhere other than the back take longer. You just have an array of pointers to "DataHolder" unions that can be anything. It would then follow the same rules that sort uses for lists.