Recent optimizations avoiding resort on item change (see https://github.com/wxWidgets/wxWidgets/pull/642) have also optimized away refreshing the modified item, which was done implicitly, as a side effect of resorting, before, so the changes were not reflected on display immediately any longer. Fix this by simply refreshing the item explicitly and also add a way to test for the correct behaviour in the sample.