Revision: 16375
          http://sourceforge.net/p/skim-app/code/16375
Author:   hofman
Date:     2026-06-08 22:14:50 +0000 (Mon, 08 Jun 2026)
Log Message:
-----------
subsort notes in notes document by boundsOrder by default

Modified Paths:
--------------
    trunk/SKNotesDocument.m

Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m     2026-06-08 16:48:27 UTC (rev 16374)
+++ trunk/SKNotesDocument.m     2026-06-08 22:14:50 UTC (rev 16375)
@@ -167,8 +167,8 @@
     [outlineView setStronglyReferencesItems:YES];
 
     NSSortDescriptor *indexSortDescriptor = [[NSSortDescriptor alloc] 
initWithKey:SKNPDFAnnotationPageIndexKey ascending:YES];
-    NSSortDescriptor *stringSortDescriptor = [[NSSortDescriptor alloc] 
initWithKey:SKNPDFAnnotationStringKey ascending:YES 
selector:@selector(localizedCaseInsensitiveNumericCompare:)];
-    [arrayController setSortDescriptors:@[indexSortDescriptor, 
stringSortDescriptor]];
+    NSSortDescriptor *boundsSortDescriptor = [[NSSortDescriptor alloc] 
initWithKey:SKPDFAnnotationBoundsOrderKey ascending:YES 
selector:@selector(compare:)];
+    [arrayController setSortDescriptors:@[indexSortDescriptor, 
boundsSortDescriptor]];
     [outlineView reloadData];
     
     [outlineView setTypeSelectHelper:[SKTypeSelectHelper 
typeSelectHelperWithMatchOption:SKSubstringMatch]];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to