changed sort order for pieces