Optimality of the rearrangement inequality with applications to Lorentz-type sequence spaces | Publicación