end-buffer option sorted