currently "sort threads by" dropdown exists and works, but it looks very ugly (css needed!). should be small and float to the right, probably.
implementation of the rest should not be too hard in itself, the ui is probably the more difficult thing about this.