Oh, you were also appending, I didn't realize. You can still do (in a plugin if you want)
this.children().sort(.....).appendTo(this).end().end(); On Dec 12, 12:10 pm, Flesler <[EMAIL PROTECTED]> wrote: > 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.- Hide quoted text - > > - Show quoted text -