How to check if list is sortable?
javascript, jquery, jquery-ui, jquery-ui-sortable
Solution
If the list is already sortable, then it should have class `ui-sortable`.
You could use `if ($('#list').hasClass('ui-sortable'))` to check it.
Problem
How to check if a specific list is sortable? Like `$('#list').is(':sortable')`... ? If we will use ``` if ($('#list').sortable()) ``` then the list will be made sortable again and not check if actually it is sortable.