sorted writer handling.