Add utility method for getting the current order by direction.