active record sortable fix