Generic Heap : UpHeapify Function

In this video , under the upheapify function ; the condition used was : if ( isLarger ( data.get( ci ) , data.get( pi ) ) > 0 ) but while I was watching the video of text processing ( HUFFMAN ENCODER ) there my output was not matching with the required output in the video. So I checked my GENERIC HEAP class and changed the above stated if condition. Then my answer matched correctly. So is the IF CONDITION given in the GENERIC HEAP video is incorrect ?