Author: david
Date: Thu Oct 13 08:48:52 2011
New Revision: 10060

Log:
Use http://www.php.net/manual/en/function.strnatcasecmp.php for sorting

Modified:
   trunk/apps/qubit/modules/informationobject/actions/fileListAction.class.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/fileListAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/fileListAction.class.php 
Wed Oct 12 23:38:44 2011        (r10059)
+++ trunk/apps/qubit/modules/informationobject/actions/fileListAction.class.php 
Thu Oct 13 08:48:52 2011        (r10060)
@@ -145,7 +145,7 @@
       foreach ($this->results as $key => &$items)
       {
         uasort($items, function($a, $b) use ($sortBy) {
-           return strcasecmp($a[$sortBy], $b[$sortBy]); 
+           return strnatcasecmp($a[$sortBy], $b[$sortBy]); 
         });
 
         // Sort dates in *descending* order

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to