Eliminated unnecessary check to see if j was less than order.