Hello,
I was wondering where I should put logic for sorting a collection (e.g. a collection of usernames) in a MVC environment. I could sort them with Collections.sort() in the controller or via custom taglibs in my JSP view. In the case of collection elements that have to be translated (i18n) before sorting, I have to resolve the message code first and sort afterwards.
What do you think? Where should collections be sorted?
Best
Oliver


Reply With Quote
