Added sorting and fixed width

Pull request with following changes:

Added sorting and required css.
Changed variable name widget to wudget as it is conflicting with this.widget() in destroy.
I copied some code from TFS to fix the column width.