Just in case you are interested, you could do: $.fn.sort = function( sorter ){ return this.pushStack( this.get().sort(sorter) ); };
On Dec 11, 9:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I needed to randomly reorder the <li>'s in a <ul> each time the page > loaded. I couldn't find anything to do this that would actually show > all the elements at once -- everything I found was slideshow-related > -- so I wrote a little plugin: > > http://blog.rebeccamurphey.com/2007/12/11/jquery-plugin-randomly-reor... > > In my particular case today, I needed it to randomly reorder a list of > case studies, but I can imagine other uses as well. Curious for any > thoughts/suggestions for improvement.