is_sortable function

Checks whether a vector or list is sortable