done with almost-sorted