fix sort order issue