posted 14 years ago
It depends on what you mean by "sorting logic". The RichFaces extended datatable tag supports sortable - and searchable - tabular displays with minimal logic.
More internally, you can sort things using Collections objects and their sorting facilities, That's just part of the core JDK, however, and isn't affected by whether or not you're using JSF.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.