diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-02 12:41:50 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-03-02 12:41:50 -0800 |
commit | b38ce967f36e0dc5a503fbca9477732cd8967ea6 (patch) | |
tree | 9fa375a38be707e1a660d7ab66e413af58b0ef0a /include | |
parent | dbe73cdcbe4a51bbb9588af88afea22b5b201cc0 (diff) | |
download | volse-hubzilla-b38ce967f36e0dc5a503fbca9477732cd8967ea6.tar.gz volse-hubzilla-b38ce967f36e0dc5a503fbca9477732cd8967ea6.tar.bz2 volse-hubzilla-b38ce967f36e0dc5a503fbca9477732cd8967ea6.zip |
sort settings/featured
Diffstat (limited to 'include')
-rw-r--r-- | include/text.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index c82fad517..6675043e6 100644 --- a/include/text.php +++ b/include/text.php @@ -3311,4 +3311,10 @@ function purify_filename($s) { return $s; } +// callback for sorting the settings/featured entries. +function featured_sort($a,$b) { + $s1 = substr($a,strpos($a,'id='),20); + $s2 = substr($b,strpos($b,'id='),20); + return(strcmp($s1,$s2)); +} |