| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2014-08-13 07:41 UTC] fa@php.net
 
-Status: Open
+Status: Feedback
  [2014-08-13 07:41 UTC] fa@php.net
  [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 00:00:01 2025 UTC | 
Description: ------------ Wrong sorting Array when sort_flags = SORT_NATURAL. Test script: --------------- $a=['W1010','W108','W109','W1011']; $b=['W0010','W008','W009','W0011']; sort($a,SORT_NATURAL); sort($b,SORT_NATURAL); print_r($a); # Sort OK print_r($b); # Sort Wrong - Why? Bug? Expected result: ---------------- Array ( [0] => W108 [1] => W109 [2] => W1010 [3] => W1011 ) Array ( [0] => W0010 [1] => W0011 [2] => W008 [3] => W009 )