[jQuery] jquery ui sortable

[jQuery] jquery ui sortable


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 :)