corrected the sort order in the indexes also.