See the 'update' event and the 'toArray' method: http://docs.jquery.com/UI/Sortable#events
http://docs.jquery.com/UI/Sortable#methods If you have any further questions about this or other jQuery UI plugins, please note there's a dedicated mailing list for jQuery UI: http://groups.google.com/group/jquery-ui/about - Richard On Tue, Feb 17, 2009 at 6:54 PM, Ashit Vora <a.k.v...@gmail.com> wrote: > > Hi, > I was just playing with jQuery UI sortable. > > Whenever an element is sorted, I want to call a function. > > eg. There are five paragraph elements containing A, B, C, D, E. > After every sort, I want to check it the current order is EDCBA or > not. > > How can I do this? > > Thanks :)