aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-02 12:41:50 -0800
committerzotlabs <mike@macgirvin.com>2018-03-02 12:41:50 -0800
commitb38ce967f36e0dc5a503fbca9477732cd8967ea6 (patch)
tree9fa375a38be707e1a660d7ab66e413af58b0ef0a /include/text.php
parentdbe73cdcbe4a51bbb9588af88afea22b5b201cc0 (diff)
downloadvolse-hubzilla-b38ce967f36e0dc5a503fbca9477732cd8967ea6.tar.gz
volse-hubzilla-b38ce967f36e0dc5a503fbca9477732cd8967ea6.tar.bz2
volse-hubzilla-b38ce967f36e0dc5a503fbca9477732cd8967ea6.zip
sort settings/featured
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php6
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));
+}