From: <var...@us...> - 2012-11-29 17:41:09
|
Revision: 8574 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8574&view=rev Author: vargenau Date: 2012-11-29 17:40:59 +0000 (Thu, 29 Nov 2012) Log Message: ----------- Add function cmp_by_count Modified Paths: -------------- trunk/lib/plugin/NewPagesPerUser.php Modified: trunk/lib/plugin/NewPagesPerUser.php =================================================================== --- trunk/lib/plugin/NewPagesPerUser.php 2012-11-29 14:59:43 UTC (rev 8573) +++ trunk/lib/plugin/NewPagesPerUser.php 2012-11-29 17:40:59 UTC (rev 8574) @@ -136,6 +136,12 @@ } } +function cmp_by_count($a, $b) +{ + if ($a['count'] == $b['count']) return 0; + return $a['count'] < $b['count'] ? 1 : -1; +} + // Local Variables: // mode: php // tab-width: 8 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |