need better errors when sorting by a non-sortable field