Sort:  

You're welcome! I learned a couple of things myself when writing this.