note 60488 added to function.usort

From: Date: Sun, 08 Jan 2006 21:36:35 +0000
Subject: note 60488 added to function.usort
Groups: php.notes 
Request: Send a blank email to php-notes+get-101422@lists.php.net to get a copy of this message
I have a table of data which is being sorted frequently and I would like to remember the sort order from previous sorts, basically using them as secondary keys... alas as of 4.06 it seems the usort function does not return equal elements in a defined order. Does anyone know of an alternative to usort that provides a defined order all array elements? Note that I still need all of the functionality provided with usort. Is there a flag to force usort to return elements in a defined order? ---- Manual Page -- http://www.php.net/manual/en/function.usort.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60488 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60488&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60488&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60488&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60488&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60488&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60488&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60488&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60488&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101422) next »