I'm working on a database interface that should allow flexibility in grouping and sorting data. So I came up with this idea (http://www.vladdy.net/Demos/klHierBuilder.html) for an interface that allows to construct the desired hierarchy from predefined options.
The code is not complete yet, but I was curious is anyone can think of other possible uses and provide feedback.