Hello, I'm not sure if this is the best forum for my question, sorting a Set seems to fit it. I'm working in .groovy files and have a hibernate.collection.PersistentSet that I need to sort in the following form:
The PersistentSet is returned with sp.repGroupProfiles, where sp is a db domain object and repGroupProfiles is part of has-many relation. I have sorting algorithms at hand way back from school, but before using them, I'd like to see if there is something else I could use. Ideally, I'd like to be able to sort right in render statement, but not sure if that's at all possible. If anyone knows of elegant solutions to this, I'd sure be happy to hear about them. Thank you in advance.