GE Digital interview question

Sort an int array by number of one in binary representation