actually, is_array check is not needed, i.e. even with single $sort, string "desc" != array('desc')