add persistent sortable function