Fixed bug #16605: TCA tree: sorting is not working