Fixed bug where GridView::applySortAndFilter called to early

Fixed bug where GridView::applySortAndFilter called to early