Adding sortable function