Add sort order scope to pieces