Largest number from array

sir i am not able to understand the line 13 and 15 of comparator function of sort. when element is 3 and 30 then if statement is true but why are we returning true in it as it will give permission to sort the two strings which will create smaller number. but when we know that330 > 303 then we don’t need sorting then why is comparator returning true in sort function .
code link -> https://ide.codingblocks.com/s/484733

instead of loop you can just return this single statement
return one > two;

this will return true if one is larger than two
hence larger no comes forward in then array
in this way you can make largest number from array