buffer sort order