From 7ec6608d170d61bee84768b3d7aa0186c21e7dd8 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 18 Nov 2015 15:43:45 +0100 Subject: it::sort docs --- it.class | 3 +++ 1 file changed, 3 insertions(+) diff --git a/it.class b/it.class index b097e60..d44d502 100644 --- a/it.class +++ b/it.class @@ -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 -- cgit v1.2.3