From 4a09d329c8e68fb3177fd8ff072da9221957f988 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 31 Mar 2012 22:09:55 +0200 Subject: [PATCH] in Ox.api, add default sort, and allow for values to be arrays --- source/Ox/js/Array.js | 45 +++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/source/Ox/js/Array.js b/source/Ox/js/Array.js index c7e383a7..b4c4f64e 100644 --- a/source/Ox/js/Array.js +++ b/source/Ox/js/Array.js @@ -8,6 +8,7 @@ Ox.api Turns an array into a list API items <[o]> An array of objects (key/value stores) options Options object enums Enumerables, for example {size: ['S', 'M', 'L', 'XL']} + sort <[o]|[s]> Default sort, for example ['+name', '-age'] sums <[s]> List of keys to be included in totals unique The name of the unique key