Fixing sort order for large objects