I removed the `if len(by) > 1`. Now, whenever the `by` parameter is used, the sorting is done by `_lexsort_indexer`. Before, `argsort` was being used. But `argsort` always puts NaNs at the end, so if we want to be able to place NaNs at the beginning, it seems better now to use `_lexsort_indexer`.