Fixed datagrid sorting

fix #207