Revision: 18615
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18615&view=rev
Author:   hofman
Date:     2012-05-07 09:19:15 +0000 (Mon, 07 May 2012)
Log Message:
-----------
sort titles using localizedCaseInsensitiveNumericCompare

Modified Paths:
--------------
    trunk/bibdesk/BDSKTableSortDescriptor.m

Modified: trunk/bibdesk/BDSKTableSortDescriptor.m
===================================================================
--- trunk/bibdesk/BDSKTableSortDescriptor.m     2012-05-06 06:34:53 UTC (rev 
18614)
+++ trunk/bibdesk/BDSKTableSortDescriptor.m     2012-05-07 09:19:15 UTC (rev 
18615)
@@ -58,11 +58,11 @@
         
        }else if([tcID isEqualToString:BDSKTitleString]){
                
-               sortDescriptor = [[self alloc] 
initWithKey:@"title.stringByRemovingTeXAndStopWords" ascending:ascend 
selector:@selector(localizedCaseInsensitiveCompare:)];
+               sortDescriptor = [[self alloc] 
initWithKey:@"title.stringByRemovingTeXAndStopWords" ascending:ascend 
selector:@selector(localizedCaseInsensitiveNumericCompare:)];
                
        }else if([tcID isEqualToString:BDSKContainerString]){
                
-        sortDescriptor = [[self alloc] 
initWithKey:@"container.stringByRemovingTeXAndStopWords" ascending:ascend 
selector:@selector(localizedCaseInsensitiveCompare:)];
+        sortDescriptor = [[self alloc] 
initWithKey:@"container.stringByRemovingTeXAndStopWords" ascending:ascend 
selector:@selector(localizedCaseInsensitiveNumericCompare:)];
         
        }else if([tcID isEqualToString:BDSKPubDateString]){
                
@@ -130,7 +130,7 @@
         
     }else if([tcID isEqualToString:BDSKBooktitleString]){
         
-        sortDescriptor = [[self alloc] 
initWithKey:@"Booktitle.stringByRemovingTeXAndStopWords" ascending:ascend 
selector:@selector(localizedCaseInsensitiveCompare:)];
+        sortDescriptor = [[self alloc] 
initWithKey:@"Booktitle.stringByRemovingTeXAndStopWords" ascending:ascend 
selector:@selector(localizedCaseInsensitiveNumericCompare:)];
         
     }else if([tcID isBooleanField] || [tcID isTriStateField]){
         

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to