Sortable.create

Hello, I need some help regarding sortable tree. I have a table which i have used a acts_as_tree. The table is named relations. I want the tree to be drag and drop so that i can put a relation inside a relation.

Can anyone please tell me what do i need to do.