Renamed sort_order -> sort_direction