some changes for sort By