sort order bug fixed