I echo some <li class='A'> or class='B' or class='C' in #a sortable div.
Then user moves them in #b sortable div. I need that in #b the <li> automaticly sort themselves by desc alfabetic order of their class (C->B->A) and, in second time, by alfabetic order of the <li>'s content (<li class='X'>content</li>).
How have I to script in <head>?