Bugfix: Sorting items in tree view