Question about TTreeView and sort triggers lazarus / 31-LCL ---------------------------------------------------------------------- outlyer ยท 2015-03-24 17:03 Hi, my understanding is that setting a TTreeView's SortType to something other than stNone and defining an OnCompare handler should be enough to keep a TreeView sorted, but I can't get it to work. My OnCompare is not called when I add a node, nor when I change its text or data (tried with the respective stText, stData and stBoth). The only time it's called is if I call manually TreeView.AlphaSort. Can someone point out what am I missing?