adding sort preferences