projects
/
misc
/
kostenrechnung
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca805df
)
Sort list of masks
author
Joey Schulze
<joey@infodrom.org>
Fri, 26 Feb 2010 22:37:40 +0000
(23:37 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 26 Feb 2010 22:37:40 +0000
(23:37 +0100)
masks/sys_mask.php
patch
|
blob
|
history
diff --git
a/masks/sys_mask.php
b/masks/sys_mask.php
index
ae25b48
..
eccf8e2
100644
(file)
--- a/
masks/sys_mask.php
+++ b/
masks/sys_mask.php
@@
-1,5
+1,10
@@
<?php
<?php
+function discover_cmp($a, $b)
+{
+ return strcmp($a['id'],$b['id']);
+}
+
function discover_masks()
{
$info = array();
function discover_masks()
{
$info = array();
@@
-14,6
+19,7
@@
function discover_masks()
}
closedir($d);
}
closedir($d);
+ usort($info,discover_cmp);
return $info;
}
return $info;
}