# How to use the \`by\` argument to \`searchsortedlast()\`

**URL:** <https://discourse.julialang.org/t/how-to-use-the-by-argument-to-searchsortedlast/79509>\
**Category:** General Usage\
**Created:** [April 15, 2022, 12:07am UTC](https://discourse.julialang.org/t/how-to-use-the-by-argument-to-searchsortedlast/79509 "2022-04-15T00:07:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![FPGro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fpgro/32/20822_2.png) [@FPGro](https://discourse.julialang.org/u/FPGro)\
**Post date:** [April 15, 2022, 8:13am UTC](https://discourse.julialang.org/t/how-to-use-the-by-argument-to-searchsortedlast/79509/4 "2022-04-15T08:13:37Z")

</div>

> [@maxkapur](#):
>
> This is quite a rabbit hole:

Agreed 😃

I guess the takeaway is to ignore the `by` keyword altogether, which wouldn’t be that bad imho. It just needs a tiny nudge in the right direction in the docstrings of these functions.

> [@maxkapur](#):
>
> I hope a more consistent search/sort interface can be a priority for 2.0.

Gotta check if there’s an issue set for 2.0… Edit: found nothing, may write something when I have time

Ref: [existing discourse post](https://discourse.julialang.org/t/problem-with-searchsortedfirst/73332)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-use-the-by-argument-to-searchsortedlast/79509)._
