I'm trying to sort table using AJAX

ScheduleC.php

```php
        public function onSort() {

            $groupId = (int)post('groupid');
            $professorId = (int)post('professorid');

            $schedules = Schedule::orderBy('date', 'desc')->get();

            if (($groupId) && ($groupId!='-1')) {
                $this->sortByGroup($groupId, $schedules);
            }

            if (($professorId) && ($professorId!='-1')) {
                $this->sortByProfessor($professorId, $schedules);
            }

            $this->schedule = $this->page['schedule'] = $schedules;

            return  $this->page['schedule'];
        }

```

default.php

```html
<div id="schedule-table-container">
    {% partial '@schedule-table' %}
</div>

```

schedule.js

```
$(document).ready(function() {
    $('#sortschedule').submit(function(event) {
        event.preventDefault();
        $(this).request('onSort', {         
        update: {'schedulec::schedule-table': '#schedule-table-container'},
        success: function(data) {
            console.log(data);
            this.success(data);
        }
        });
    });
});

```

The function returns the correct data, but partial is not updated.

The most interesting is that the similar code is working at my another project. Please, help.