fix sort order in index