fixed setting sort query on collection
fixed querying and sorting in DataGrid