This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When it is desired to sort the values of a TTV it is required to set the value "ComparableColumnTTV" to Boolean.TRUE on that specific column. If the TTV is then sorted via that specific column it is nearly certain to produce an incorrect view of the sorted data. The only case in which the TTV is shown correctly is when every single row contains a different value in the sorted column. Thus the number of rows shown is the number of unique values in that column. From my standpoint http://hg.netbeans.org/release67_fixes/rev/565be3214153 seems to be the originating commit for this behavior. This issue is made P1 since this is the only way to sort a TTV and there is no way to externally circumvent this bug.
Created attachment 86333 [details] Simple project showing described bahvior
core-main #eb648b31a333, please verify
Test for issue core-main #8fd574e729a9
Verified in our platform application, thanks for the fast response.
I can verify that the number of rows does not change. What I cannot verify is that the order of the rows is as it was prior to sorting when disabling sort. I think the testcase from https://hg.netbeans.org/core-main/rev/8fd574e729a9 could show that if there is an additional key like "10". Sample-app does show this as well.
core-main #bc8d6e407ff7
Created attachment 86450 [details] proposed patch to testCase testSorting
proposed patch adds test that sort by nodeColumn is in original order after ascending and descending sorts were performed
I added test for "no sorting" as part of core-main #98de2b9566b8. Your patch actually does not switch TTV to "no sort" mode.
Integrated into 'main-golden', will be available in build *200908210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/eb648b31a333 User: Tomas Holy <t_h@netbeans.org> Log: #170493: sorting in TTV broken in 6.7.1