Sortable example

Some bugs fixed