Adds sortable functionality