The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 50 more by this user. Created: 02/15/11
Last CDN Push: 01/16/13
Build Tag: gallery-2013.01.16-21-05
Project: YUI 3
License: YUI BSD
YUI Version: 3.5.1
Free for use.
Implements useful algorithms:
The functions are added to both Y.Array and Y.ArrayList (if loaded).
Examples of sorting arrays.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2013.01.16-21-05'
}).use('gallery-algorithms', function(Y)
{
var string_list = [ 'string1', 'string2', ... ];
Y.Array.quickSort(string_list);
var obj_list = [ {...}, {...}, ... ];
Y.Array.quickSort(list, function(a,b)
{
return (a.field - b.field);
});
});
No forum posts for this module.
All code on this site is licensed under the BSD License unless stated otherwise.