> Someone please review as I don't know if this code is efficient. The code is efficient (according to Qt documentation, O(n log n) runtime -- you generally don't get faster than that when sorting). I haven't tested the patch, but it looks good. Cheers Jakob