Any ideas to disordering a table?

Any ideas to disordering a table?

Hi, I'm new at the forum and new in jQuery.

I have to alter randomly the order of the td elements of a table. Do you have any idea to do it "quickly"?

My initial idea is:

- Clone the original table (I can't modify it).
- Disorder randomly the elements of the cloned table.
- Show the cloned table.

The actual code is:

  1. <html> 
  2. <head>
  3. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
  4. <script type="text/javascript">
  5. $(document).ready(function(){
  6. });
  7. </script>
  8. </head>  
  9. <body> 
  10.  
  11. <script>
  12. $(document).ready(function(){
  13. <!-- We make the copy of the table
  14. $('#data-source tr')
  15. .clone()
  16. .appendTo("#new_table")
  17. ;
  18. <!-- We show the copied table down the original (for testing purposes)
  19. $('#new_table').css('display', 'block');
  20. $('#data-source').css('display', 'block');
  21. });
  22. </script>

  23. <!-- ini data-source -->
  24. <div id="data-source-container">
  25. <table id="new_table"></table>
  26. <table id="data-source">
  27. <tr>
  28. <td>First element.</td>
  29. <td>Second element.</td>
  30. <td>Third element.</td>
  31. <td>Fourth element.</td>
  32. <td>Fifth element.</td>
  33. </tr>
  34. </table>
  35. </div>
  36. <!-- end data-source -->
  37. </body> 
  38. </html>
 
Can someone help me a bit disordering the elements?

Thank you very much, and sorry for my english.