I tested many times before and it was showing incorrectly.
test it again many times, if you are getting wrong result then it is processing by column, then by row.