adding sort order adjustments