Fix when order column is not named 'sort_order'