diff options
author | Urban Müller | 2015-11-18 15:43:45 +0100 |
---|---|---|
committer | Urban Müller | 2015-11-18 15:43:45 +0100 |
commit | 7ec6608d170d61bee84768b3d7aa0186c21e7dd8 (patch) | |
tree | 0e25060083b1ca36a83e54cbc7a82bfbf416e1ac | |
parent | b52db895457e3b2470409a892e0de944e23ea4be (diff) | |
download | itools-7ec6608d170d61bee84768b3d7aa0186c21e7dd8.tar.gz itools-7ec6608d170d61bee84768b3d7aa0186c21e7dd8.tar.bz2 itools-7ec6608d170d61bee84768b3d7aa0186c21e7dd8.zip |
it::sort docs
-rw-r--r-- | it.class | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1030,6 +1030,9 @@ static function json_decode($json) return ($data = json_decode($json)) === null && $json != 'null' ? it::error(array('title' => "invalid json", 'body' => $json)) : $data; } +/** + * Retuns sorted array. mode string can contain combinations of a for assoc, k for key, r for reverse and n for numeric + */ static function sort($array, $mode = "") { $func = it::replace(array('n' => ""), count_chars($mode, 3)) . "sort"; # count_chars sorts flags |