fixed backwards sorts